From 95367851fae44c6229d06ad3060c4bfff0931249 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Mon, 23 May 2022 16:10:54 +0900 Subject: [PATCH] ci-automation/sdk_bootstrap.sh: Allow omitting the optional parameters The coreos/portage refs were allowed to be empty strings but the way the function was run from Groovy the lack of quoting caused the empty strings to be missing parameters. Since the two parameters are meant to be optional, support omitting them. --- ci-automation/sdk_bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci-automation/sdk_bootstrap.sh b/ci-automation/sdk_bootstrap.sh index ee4203e601..297d12677e 100644 --- a/ci-automation/sdk_bootstrap.sh +++ b/ci-automation/sdk_bootstrap.sh @@ -53,8 +53,8 @@ set -eu function sdk_bootstrap() { local seed_version="$1" local version="$2" - local coreos_git="$3" - local portage_git="$4" + local coreos_git="${3-}" + local portage_git="${4-}" : ${ARCH:="amd64"} source ci-automation/ci_automation_common.sh