Merge pull request #464 from flatcar-linux/scripts

bootstrap_sdk_container: Fix a check for an official build
This commit is contained in:
Krzesimir Nowak 2022-09-08 15:10:20 +02:00
commit 200216cf55

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