mirror of
https://github.com/containers/skopeo.git
synced 2025-08-09 10:28:23 +00:00
Merge pull request #611 from eramoto/completions-global-option
completions: Fix completions with a global option and indentation
This commit is contained in:
commit
0490018903
@ -181,7 +181,9 @@ _cli_bash_autocomplete() {
|
||||
local counter=1
|
||||
counter=1
|
||||
while [ $counter -lt $cword ]; do
|
||||
case "!${words[$counter]}" in
|
||||
case "${words[$counter]}" in
|
||||
-*)
|
||||
;;
|
||||
*)
|
||||
command=$(echo "${words[$counter]}" | sed 's/-/_/g')
|
||||
cpos=$counter
|
||||
|
Loading…
Reference in New Issue
Block a user