Fix release type selector

This commit is contained in:
Howard Wu 2022-08-30 23:57:26 +08:00
parent 73cb428d1b
commit 5d608e3a86
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -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[@]}"