From c61a5ea2c40fad602d8fdce0b2cff1ab803f2f9a Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 2 Sep 2019 13:29:32 +0200 Subject: [PATCH] bash completions: use bash replacement instead of sed Signed-off-by: Valentin Rothberg --- completions/bash/skopeo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/completions/bash/skopeo b/completions/bash/skopeo index a2066f77..bb44e39f 100644 --- a/completions/bash/skopeo +++ b/completions/bash/skopeo @@ -62,7 +62,7 @@ _skopeo_copy() { local transports transports=" - $(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//')) + $(_skopeo_supported_transports "${FUNCNAME//"_skopeo_"/}") " _complete_ "$options_with_args" "$boolean_options" "$transports" @@ -83,7 +83,7 @@ _skopeo_inspect() { local transports transports=" - $(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//')) + $(_skopeo_supported_transports "${FUNCNAME//"_skopeo_"/}") " _complete_ "$options_with_args" "$boolean_options" "$transports" @@ -127,7 +127,7 @@ _skopeo_delete() { local transports transports=" - $(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//')) + $(_skopeo_supported_transports "${FUNCNAME//"_skopeo_"/}") " _complete_ "$options_with_args" "$boolean_options" "$transports"