From c6f6d8c27a03cfe67dcf9cefcc32dba73ae549d8 Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Thu, 9 Sep 2021 11:18:17 +0300 Subject: [PATCH] plugins: Fix shellcheck warnings on already linted files --- plugins/available/alias-completion.plugin.bash | 2 +- plugins/available/git.plugin.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/available/alias-completion.plugin.bash b/plugins/available/alias-completion.plugin.bash index 390b10e3cb..0db9b04b70 100644 --- a/plugins/available/alias-completion.plugin.bash +++ b/plugins/available/alias-completion.plugin.bash @@ -70,7 +70,7 @@ function alias_completion { local compl_func="${new_completion/#* -F /}" compl_func="${compl_func%% *}" # avoid recursive call loops by ignoring our own functions - if [[ "${compl_func#_$namespace::}" == "$compl_func" ]]; then + if [[ "${compl_func#_"$namespace"::}" == "$compl_func" ]]; then local compl_wrapper="_${namespace}::${alias_name}" echo "function $compl_wrapper { local compl_word=\$2 diff --git a/plugins/available/git.plugin.bash b/plugins/available/git.plugin.bash index e4efc3fe38..6a85e7dc18 100644 --- a/plugins/available/git.plugin.bash +++ b/plugins/available/git.plugin.bash @@ -309,7 +309,7 @@ function git-changelog() { # shellcheck disable=SC2162 git log "$1" --no-merges --format="%cd" --date=short | sort -u -r | while read DATE; do echo - echo [$DATE] + echo "[$DATE]" git log --no-merges --format=" * (%h) %s by %an <%ae>" --since="$DATE 00:00:00" --until="$DATE 24:00:00" NEXT=$DATE done