mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 22:28:33 +00:00
bash-completion: use replacement instead of sed
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@@ -195,7 +195,7 @@ _cli_bash_autocomplete() {
|
|||||||
-*)
|
-*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
command=$(echo "${words[$counter]}" | sed 's/-/_/g')
|
command="${words[$counter]//-/_}"
|
||||||
cpos=$counter
|
cpos=$counter
|
||||||
(( cpos++ ))
|
(( cpos++ ))
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user