From 6a4a44b29fcdd2caac55f3ace1df85f9af8285e8 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Tue, 19 Nov 2019 21:11:10 +0100 Subject: [PATCH] Set default image type if none is set --- auto/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/auto/config b/auto/config index 4419709..5ae4e1e 100755 --- a/auto/config +++ b/auto/config @@ -26,7 +26,13 @@ else fi UI_TYPE=$(echo $FLAVOR | cut -f1 -d-) -IMAGE_TYPE=$(echo $FLAVOR | cut -f2 -d-) +IMAGE_TYPE=${FLAVOR#*-} +if [ "$IMAGE_TYPE" = "$FLAVOR" ]; then + IMAGE_TYPE="live" + echo "Using default image type: $IMAGE_TYPE" +else + echo "Using image type: $IMAGE_TYPE" +fi CURRENT_DATE=$(date +%Y%m%d)