mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-26 02:42:28 +01:00
bootstrap_sdk_container: Fix a check for an official build
It should happen after we had a chance of processing input parameters, otherwise we were always operating on empty values which resulted in always having an unofficial build.
This commit is contained in:
parent
ca75c0266d
commit
b3b88f0160
@ -11,12 +11,6 @@ source sdk_lib/sdk_container_common.sh
|
||||
|
||||
seed_version=""
|
||||
target_version=""
|
||||
vernum="$(strip_version_prefix "$target_version")"
|
||||
if is_official "$vernum" ; then
|
||||
official="true"
|
||||
else
|
||||
official="false"
|
||||
fi
|
||||
|
||||
declare -a cleanup
|
||||
|
||||
@ -64,6 +58,13 @@ if [ -z "$seed_version" -o -z "$target_version" ] ; then
|
||||
fi
|
||||
# --
|
||||
|
||||
vernum="$(strip_version_prefix "$target_version")"
|
||||
if is_official "$vernum" ; then
|
||||
official="true"
|
||||
else
|
||||
official="false"
|
||||
fi
|
||||
|
||||
yell "\n######\n###### Bootstrapping SDK version $target_version from seed ($seed_version)"
|
||||
|
||||
if $official; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user