plugins: Fix shellcheck warnings on already linted files

This commit is contained in:
Noah Gorny
2021-09-09 11:18:17 +03:00
parent 9ea60020ae
commit c6f6d8c27a
2 changed files with 2 additions and 2 deletions

View File

@@ -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