summaryrefslogtreecommitdiff
path: root/completions/zopflipng
diff options
context:
space:
mode:
Diffstat (limited to 'completions/zopflipng')
-rw-r--r--completions/zopflipng8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/zopflipng b/completions/zopflipng
index 88ddbe68..3d815404 100644
--- a/completions/zopflipng
+++ b/completions/zopflipng
@@ -10,7 +10,7 @@ _zopflipng()
return
;;
--splitting)
- COMPREPLY=( $( compgen -W '{0..3}' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '{0..3}' -- "$cur") )
return
;;
esac
@@ -18,13 +18,13 @@ _zopflipng()
$split && return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( _parse_help "$1" -h ) )
- COMPREPLY=( $( compgen -W '${COMPREPLY[@]%:}' -- "$cur" ) )
+ COMPREPLY=( $(_parse_help "$1" -h) )
+ COMPREPLY=( $(compgen -W '${COMPREPLY[@]%:}' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return
fi
- if [[ ${words[@]} != *\ --prefix=* ]]; then
+ if [[ "${words[*]}" != *\ --prefix=* ]]; then
# 2 png args only if --prefix not given
local args
_count_args