mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 20:47:00 +02: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
47f20d2dab
commit
27c36a2f5e
@ -11,12 +11,6 @@ source sdk_lib/sdk_container_common.sh
|
|||||||
|
|
||||||
seed_version=""
|
seed_version=""
|
||||||
target_version=""
|
target_version=""
|
||||||
vernum="$(strip_version_prefix "$target_version")"
|
|
||||||
if is_official "$vernum" ; then
|
|
||||||
official="true"
|
|
||||||
else
|
|
||||||
official="false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
declare -a cleanup
|
declare -a cleanup
|
||||||
|
|
||||||
@ -64,6 +58,13 @@ if [ -z "$seed_version" -o -z "$target_version" ] ; then
|
|||||||
fi
|
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)"
|
yell "\n######\n###### Bootstrapping SDK version $target_version from seed ($seed_version)"
|
||||||
|
|
||||||
if $official; then
|
if $official; then
|
||||||
|
Loading…
Reference in New Issue
Block a user