mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 14:20:21 +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++ ))
|
||||
break
|
||||
|
Reference in New Issue
Block a user