mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 14:01:43 +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
ea68ead086
commit
95367851fa
@ -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