mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 04:26:59 +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=""
|
||||
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…
Reference in New Issue
Block a user