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:
Krzesimir Nowak 2022-09-08 14:55:36 +02:00
parent 47f20d2dab
commit 27c36a2f5e

View File

@ -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