mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-10 21:55:11 +01:00
Fix release type selector
This commit is contained in:
parent
73cb428d1b
commit
5d608e3a86
@ -151,7 +151,6 @@ while [[ $# -gt 0 ]]; do
|
||||
--debug ) DEBUG="on"; shift ;;
|
||||
--help ) usage; shift ;;
|
||||
-- ) shift; break;;
|
||||
? ) usage "Unknown parameter: $2"; break ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -150,7 +150,7 @@ fi
|
||||
# fi
|
||||
# OFFLINE="--offline"
|
||||
clear
|
||||
|
||||
COMMAND_LINE=(--arch "$ARCH" --release-type "$RELEASE_TYPE" --magisk-ver "$MAGISK_VER" --gapps-brand "$GAPPS_BRAND" --gapps-variant "$GAPPS_VARIANT" "$REMOVE_AMAZON" --root-sol "$ROOT_SOL" "$COMPRESS_OUTPUT" "$OFFLINE" "$DEBUG" "$CUSTOM_MAGISK")
|
||||
declare -A RELEASE_TYPE_MAP=(["retail"]="retail" ["release preview"]="RP" ["insider slow"]="WIS" ["insider fast"]="WIF")
|
||||
COMMAND_LINE=(--arch "$ARCH" --release-type "${RELEASE_TYPE_MAP[$RELEASE_TYPE]}" --magisk-ver "$MAGISK_VER" --gapps-brand "$GAPPS_BRAND" --gapps-variant "$GAPPS_VARIANT" "$REMOVE_AMAZON" --root-sol "$ROOT_SOL" "$COMPRESS_OUTPUT" "$OFFLINE" "$DEBUG" "$CUSTOM_MAGISK")
|
||||
echo "COMMAND_LINE=${COMMAND_LINE[*]}"
|
||||
./build.sh "${COMMAND_LINE[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user