mirror of
https://github.com/containers/skopeo.git
synced 2025-09-04 08:04:56 +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
|
local counter=1
|
||||||
counter=1
|
counter=1
|
||||||
while [ $counter -lt $cword ]; do
|
while [ $counter -lt $cword ]; do
|
||||||
case "!${words[$counter]}" in
|
case "${words[$counter]}" in
|
||||||
|
-*)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
command=$(echo "${words[$counter]}" | sed 's/-/_/g')
|
command=$(echo "${words[$counter]}" | sed 's/-/_/g')
|
||||||
cpos=$counter
|
cpos=$counter
|
||||||
|
Reference in New Issue
Block a user