bash-completions: split decl and assignment to avoid masking retvals

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2019-09-02 13:22:42 +02:00
parent 699c25568c
commit 646e197eed

View File

@ -60,7 +60,8 @@ _skopeo_copy() {
--dest-oci-accept-uncompressed-layers
"
local transports="
local transports
transports="
$(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//'))
"
@ -80,7 +81,8 @@ _skopeo_inspect() {
--no-creds
"
local transports="
local transports
transports="
$(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//'))
"
@ -123,7 +125,8 @@ _skopeo_delete() {
--no-creds
"
local transports="
local transports
transports="
$(_skopeo_supported_transports $(echo $FUNCNAME | sed 's/_skopeo_//'))
"