Prepare for supporting more complex flavors

merge-requests/1/head
Matthias Klumpp 7 years ago
parent 156f14714f
commit 588569e23b

@ -12,12 +12,15 @@ else
fi fi
if [ -z "$FLAVOR" ]; then if [ -z "$FLAVOR" ]; then
FLAVOR="live" FLAVOR="gnome-live"
echo "Using default flavor: $FLAVOR" echo "Using default flavor: $FLAVOR"
else else
echo "Using flavor: $FLAVOR" echo "Using flavor: $FLAVOR"
fi fi
UI_TYPE=$(echo $FLAVOR | cut -f1 -d-)
IMAGE_TYPE=$(echo $FLAVOR | cut -f2 -d-)
# repository URL # repository URL
PUREOS_REPO="https://repo.puri.sm/pureos" PUREOS_REPO="https://repo.puri.sm/pureos"
@ -80,7 +83,7 @@ case "$arch" in
;; ;;
esac esac
case "$FLAVOR" in case "$IMAGE_TYPE" in
"live"|"LIVE") "live"|"LIVE")
FLAVOR=live FLAVOR=live
FLAVOR_PRETTY=Live FLAVOR_PRETTY=Live

Loading…
Cancel
Save