mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
sdk_lib/sdk_entry.sh: only call setup_board if /build/... exists
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
This commit is contained in:
parent
e6a4349355
commit
4273b51cd6
@ -18,6 +18,9 @@ chown -R sdk:sdk /home/sdk
|
|||||||
|
|
||||||
if [ "${FLATCAR_VERSION_ID}" != "${DISTRIB_RELEASE}" ] ; then
|
if [ "${FLATCAR_VERSION_ID}" != "${DISTRIB_RELEASE}" ] ; then
|
||||||
for target in amd64-usr arm64-usr; do
|
for target in amd64-usr arm64-usr; do
|
||||||
|
if [ ! -d "/build/$target" ] ; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
if [ -f "/build/$target/etc/target-version.txt" ] ; then
|
if [ -f "/build/$target/etc/target-version.txt" ] ; then
|
||||||
source "/build/$target/etc/target-version.txt"
|
source "/build/$target/etc/target-version.txt"
|
||||||
if [ "${TARGET_FLATCAR_VERSION_ID}" = "${FLATCAR_VERSION_ID}" ] ; then
|
if [ "${TARGET_FLATCAR_VERSION_ID}" = "${FLATCAR_VERSION_ID}" ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user