mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-04-08 03:51:19 +02:00
Fix input overwritten due to parameter order
This commit is contained in:
parent
247cfe3baa
commit
d3bbe02fcd
@ -258,7 +258,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
--remove-amazon ) REMOVE_AMAZON="remove"; shift ;;
|
--remove-amazon ) REMOVE_AMAZON="remove"; shift ;;
|
||||||
--compress ) COMPRESS_OUTPUT="yes"; shift ;;
|
--compress ) COMPRESS_OUTPUT="yes"; shift ;;
|
||||||
--offline ) OFFLINE="on"; shift ;;
|
--offline ) OFFLINE="on"; shift ;;
|
||||||
--magisk-custom ) CUSTOM_MAGISK="debug"; MAGISK_VER=$CUSTOM_MAGISK; shift ;;
|
--magisk-custom ) CUSTOM_MAGISK="debug"; shift ;;
|
||||||
--magisk-ver ) MAGISK_VER="$2"; shift 2 ;;
|
--magisk-ver ) MAGISK_VER="$2"; shift 2 ;;
|
||||||
--debug ) DEBUG="on"; shift ;;
|
--debug ) DEBUG="on"; shift ;;
|
||||||
--help ) usage; exit 0 ;;
|
--help ) usage; exit 0 ;;
|
||||||
@ -266,6 +266,12 @@ while [[ $# -gt 0 ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$CUSTOM_MAGISK" ]; then
|
||||||
|
if [ -z "$MAGISK_VER" ]; then
|
||||||
|
MAGISK_VER=$CUSTOM_MAGISK
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
check_list() {
|
check_list() {
|
||||||
local input=$1
|
local input=$1
|
||||||
if [ -n "$input" ]; then
|
if [ -n "$input" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user