diff options
Diffstat (limited to 'completions/removepkg')
-rw-r--r-- | completions/removepkg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/removepkg b/completions/removepkg index eaeb70a7..77f414f6 100644 --- a/completions/removepkg +++ b/completions/removepkg @@ -5,7 +5,7 @@ _removepkg() local cur prev words cword _init_completion || return if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '-copy -keep -preserve -warn' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '-copy -keep -preserve -warn' -- "$cur") ) return fi @@ -15,8 +15,8 @@ _removepkg() fi local root=${ROOT:-/} - COMPREPLY=( $( cd "$root/var/log/packages" 2> /dev/null || return 1; \ - compgen -f -- "$cur" ) ) + COMPREPLY=( $(cd "$root/var/log/packages" 2>/dev/null || return 1; \ + compgen -f -- "$cur") ) } && complete -F _removepkg removepkg |