mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-24 09:52:24 +01:00
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:
parent
613e935d1d
commit
7ae58089cb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user