From a781b9fd510e819be1aa7f5fd6832302f3494518 Mon Sep 17 00:00:00 2001 From: Spencer Connaughton Date: Sat, 20 Jan 2024 21:57:08 -0500 Subject: [PATCH] Fix unbound variable error. --- oci/private/push.sh.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oci/private/push.sh.tpl b/oci/private/push.sh.tpl index 394b08c7..f1f40381 100644 --- a/oci/private/push.sh.tpl +++ b/oci/private/push.sh.tpl @@ -15,7 +15,9 @@ fi # set $@ to be FIXED_ARGS+$@ ALL_ARGS=(${FIXED_ARGS[@]+"${FIXED_ARGS[@]}"} $@) -set -- ${ALL_ARGS[@]} +if [[ ${#ALL_ARGS[@]} -gt 0 ]]; then + set -- ${ALL_ARGS[@]} +fi TAGS=() ARGS=()