Skip to content

Commit c6f6d8c

Browse files
author
Noah Gorny
committed
plugins: Fix shellcheck warnings on already linted files
1 parent 9ea6002 commit c6f6d8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/available/alias-completion.plugin.bash

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)