diff --git a/completions/bash/skopeo b/completions/bash/skopeo index 9e81cd7b..e3012b05 100644 --- a/completions/bash/skopeo +++ b/completions/bash/skopeo @@ -6,11 +6,14 @@ _complete_() { local options_with_args=$1 local boolean_options="$2 -h --help" - case "$prev" in - $options_with_args) - return - ;; - esac + local option_with_args + for option_with_args in $options_with_args + do + if [ "$option_with_args" == "$prev" ] + then + return + fi + done case "$cur" in -*)