Skip to content

Commit 99eab7a

Browse files
author
Noah Gorny
authored
Merge pull request #1936 from NoahGorny/fix-shellcheck-warnings
plugins: Fix shellcheck warnings on already linted files
2 parents f0690c0 + c6f6d8c commit 99eab7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/available/alias-completion.plugin.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function alias_completion {
7070
local compl_func="${new_completion/#* -F /}"
7171
compl_func="${compl_func%% *}"
7272
# avoid recursive call loops by ignoring our own functions
73-
if [[ "${compl_func#_$namespace::}" == "$compl_func" ]]; then
73+
if [[ "${compl_func#_"$namespace"::}" == "$compl_func" ]]; then
7474
local compl_wrapper="_${namespace}::${alias_name}"
7575
echo "function $compl_wrapper {
7676
local compl_word=\$2

plugins/available/git.plugin.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function git-changelog() {
309309
# shellcheck disable=SC2162
310310
git log "$1" --no-merges --format="%cd" --date=short | sort -u -r | while read DATE; do
311311
echo
312-
echo [$DATE]
312+
echo "[$DATE]"
313313
git log --no-merges --format=" * (%h) %s by %an <%ae>" --since="$DATE 00:00:00" --until="$DATE 24:00:00"
314314
NEXT=$DATE
315315
done

0 commit comments

Comments
 (0)