Set default image type if none is set

master
Matthias Klumpp 5 years ago
parent 1e4ef3a61a
commit 6a4a44b29f

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

Loading…
Cancel
Save