mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 06:10:50 +00:00
completions: Fix completions with a global option
After a global option was specified, a following string for global options, commands, and command options was not complemented. Signed-off-by: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user