mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-23 19:59:17 +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 ;;
|
--debug ) DEBUG="on"; shift ;;
|
||||||
--help ) usage; shift ;;
|
--help ) usage; shift ;;
|
||||||
-- ) shift; break;;
|
-- ) shift; break;;
|
||||||
? ) usage "Unknown parameter: $2"; break ;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ fi
|
|||||||
# fi
|
# fi
|
||||||
# OFFLINE="--offline"
|
# OFFLINE="--offline"
|
||||||
clear
|
clear
|
||||||
|
declare -A RELEASE_TYPE_MAP=(["retail"]="retail" ["release preview"]="RP" ["insider slow"]="WIS" ["insider fast"]="WIF")
|
||||||
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")
|
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[*]}"
|
echo "COMMAND_LINE=${COMMAND_LINE[*]}"
|
||||||
./build.sh "${COMMAND_LINE[@]}"
|
./build.sh "${COMMAND_LINE[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user