mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02: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
6b57a0a2c9
commit
90631614d0
@ -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