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.
This commit is contained in:
Kai Lueke 2022-05-23 16:10:54 +09:00
parent ea68ead086
commit 95367851fa

View File

@ -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