mirror of
https://github.com/containers/skopeo.git
synced 2025-09-20 09:30:15 +00:00
bash completions: use bash replacement instead of sed
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@@ -62,7 +62,7 @@ _skopeo_copy() {
|
|||||||
|
|
||||||
local transports
|
local transports
|
||||||
transports="
|
transports="
|
||||||
$(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//'))
|
$(_skopeo_supported_transports "${FUNCNAME//"_skopeo_"/}")
|
||||||
"
|
"
|
||||||
|
|
||||||
_complete_ "$options_with_args" "$boolean_options" "$transports"
|
_complete_ "$options_with_args" "$boolean_options" "$transports"
|
||||||
@@ -83,7 +83,7 @@ _skopeo_inspect() {
|
|||||||
|
|
||||||
local transports
|
local transports
|
||||||
transports="
|
transports="
|
||||||
$(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//'))
|
$(_skopeo_supported_transports "${FUNCNAME//"_skopeo_"/}")
|
||||||
"
|
"
|
||||||
|
|
||||||
_complete_ "$options_with_args" "$boolean_options" "$transports"
|
_complete_ "$options_with_args" "$boolean_options" "$transports"
|
||||||
@@ -127,7 +127,7 @@ _skopeo_delete() {
|
|||||||
|
|
||||||
local transports
|
local transports
|
||||||
transports="
|
transports="
|
||||||
$(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//'))
|
$(_skopeo_supported_transports "${FUNCNAME//"_skopeo_"/}")
|
||||||
"
|
"
|
||||||
|
|
||||||
_complete_ "$options_with_args" "$boolean_options" "$transports"
|
_complete_ "$options_with_args" "$boolean_options" "$transports"
|
||||||
|
Reference in New Issue
Block a user