summaryrefslogtreecommitdiff
path: root/completions/zopfli
diff options
context:
space:
mode:
Diffstat (limited to 'completions/zopfli')
-rw-r--r--completions/zopfli12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/zopfli b/completions/zopfli
index 3c7ea403..8c02885e 100644
--- a/completions/zopfli
+++ b/completions/zopfli
@@ -11,10 +11,10 @@ _zopfli()
;;
esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W \
- '$(_parse_help "$1" -h | command sed -e "s/#$//")' -- "$cur") )
- [[ $COMPREPLY == --i ]] && compopt -o nospace
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W \
+ '$(_parse_help "$1" -h | command sed -e "s/#$//")' -- "$cur"))
+ [[ ${COMPREPLY-} == --i ]] && compopt -o nospace
return
fi
@@ -22,8 +22,8 @@ _zopfli()
local IFS=$'\n' xspec="*.@(gz|t[ag]z)"
compopt -o filenames
- COMPREPLY=( $(compgen -f -X "$xspec" -- "$cur") $(compgen -d -- "$cur") )
+ COMPREPLY=($(compgen -f -X "$xspec" -- "$cur") $(compgen -d -- "$cur"))
} &&
-complete -F _zopfli zopfli
+ complete -F _zopfli zopfli
# ex: filetype=sh