diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-05 18:41:08 -0400 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-07-05 18:21:56 +0200 |
commit | 78fabcfa0694ae8c81e1d5ec0e5dacaed533545e (patch) | |
tree | 0f6c24c5e0d7166fbe3540acff00d7e14d02e26c /bash_completion.in | |
parent | 3f72579b2813bd93c586aec80c48472f41c60d78 (diff) | |
download | devtools-78fabcfa0694ae8c81e1d5ec0e5dacaed533545e.tar.xz |
Quote strings that shellcheck warns about.
These changes are all strictly "slap some double-quotes in there".
Anything more than that is not included in this commit.
Diffstat (limited to 'bash_completion.in')
-rw-r--r-- | bash_completion.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_completion.in b/bash_completion.in index f0a6bd0..9feef74 100644 --- a/bash_completion.in +++ b/bash_completion.in @@ -5,8 +5,8 @@ _devtools_compgen() { local i r COMPREPLY=($(compgen -W '$*' -- "$cur")) for ((i=1; i < ${#COMP_WORDS[@]}-1; i++)); do - for r in ${!COMPREPLY[@]}; do - if [[ ${COMP_WORDS[i]} = ${COMPREPLY[r]} ]]; then + for r in "${!COMPREPLY[@]}"; do + if [[ ${COMP_WORDS[i]} = "${COMPREPLY[r]}" ]]; then unset 'COMPREPLY[r]'; break fi done |