summaryrefslogtreecommitdiff
path: root/completions/installpkg
diff options
context:
space:
mode:
Diffstat (limited to 'completions/installpkg')
-rw-r--r--completions/installpkg10
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/installpkg b/completions/installpkg
index 3ebf1dfc..7455eb10 100644
--- a/completions/installpkg
+++ b/completions/installpkg
@@ -11,7 +11,7 @@ _installpkg()
return
;;
--priority)
- COMPREPLY=( $(compgen -W 'ADD REC OPT SKP' -- "$cur") )
+ COMPREPLY=($(compgen -W 'ADD REC OPT SKP' -- "$cur"))
return
;;
--tagfile)
@@ -20,14 +20,14 @@ _installpkg()
;;
esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--warn --md5sum --root --infobox --terse
- --menu --ask --priority --tagfile' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '--warn --md5sum --root --infobox --terse
+ --menu --ask --priority --tagfile' -- "$cur"))
return
fi
_filedir 't[bglx]z'
} &&
-complete -F _installpkg installpkg
+ complete -F _installpkg installpkg
# ex: filetype=sh