From 27c36a2f5e84c6970c7744b213c296e536322148 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 8 Sep 2022 14:55:36 +0200 Subject: [PATCH] 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. --- bootstrap_sdk_container | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bootstrap_sdk_container b/bootstrap_sdk_container index 710174d094..6384e69e49 100755 --- a/bootstrap_sdk_container +++ b/bootstrap_sdk_container @@ -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