diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-05-04 08:46:06 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-05-04 09:08:44 +0200 |
commit | e2423313c5dbace49ce3a9759e103d426d50cdd0 (patch) | |
tree | a437b62b855fce5785a998baa56a8066d9a86197 | |
parent | a1a36e7e4c163feb2c48c4700bd832748faa265e (diff) |
bash_completion: Quote all variables
for consistency
Gbp-Dch: Ignore
-rw-r--r-- | debian/git-buildpackage.bash-completion | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/git-buildpackage.bash-completion b/debian/git-buildpackage.bash-completion index 27072d09..d0cfd071 100644 --- a/debian/git-buildpackage.bash-completion +++ b/debian/git-buildpackage.bash-completion @@ -23,7 +23,7 @@ _gbp_tags () _gbp_options () { - gbp $1 --help | sed -ne 's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p' + gbp "${1}" --help | sed -ne 's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p' } @@ -197,8 +197,8 @@ _gbp () local func command=$(_gbp_find_cmd_on_cmdline "$commands") - if [ -z $command ]; then - COMPREPLY=( $(compgen -W "$commands" -- $cur ) ) + if [ -z "${command}" ]; then + COMPREPLY=( $(compgen -W "$commands" -- "${cur}" ) ) else func=_gbp-"${command}" $func |