mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-04-25 17:59:35 +00:00
Fix shellcheck
This commit is contained in:
parent
502cd8bb5e
commit
8d374b736c
1 changed files with 5 additions and 40 deletions
|
@ -100,47 +100,16 @@ else
|
|||
fi
|
||||
|
||||
if (YesNoBox '([title]="Install GApps" [text]="Do you want to install GApps?")'); then
|
||||
# GAPPS_BRAND=$(
|
||||
# Radiolist '([title]="Which GApps do you want to install?"
|
||||
# [default]="MindTheGapps")' \
|
||||
# 'MindTheGapps' "Recommend" 'on' \
|
||||
# 'OpenGApps' "This flavor may cause startup failure" 'off'
|
||||
# )
|
||||
#GAPPS_BRAND="MindTheGapps"
|
||||
INSTALL_GAPPS="--install-gapps"
|
||||
else
|
||||
#GAPPS_BRAND="none"
|
||||
INSTALL_GAPPS=""
|
||||
fi
|
||||
|
||||
if [ "$GAPPS_BRAND" = "OpenGApps" ]; then
|
||||
# TODO: Keep it pico since other variants of opengapps are unable to boot successfully
|
||||
if [ "$DEBUG" = "1" ]; then
|
||||
GAPPS_VARIANT=$(
|
||||
Radiolist '([title]="Variants of GApps"
|
||||
[default]="pico")' \
|
||||
'super' "" 'off' \
|
||||
'stock' "" 'off' \
|
||||
'full' "" 'off' \
|
||||
'mini' "" 'off' \
|
||||
'micro' "" 'off' \
|
||||
'nano' "" 'off' \
|
||||
'pico' "" 'on' \
|
||||
'tvstock' "" 'off' \
|
||||
'tvmini' "" 'off'
|
||||
)
|
||||
else
|
||||
GAPPS_VARIANT=""
|
||||
fi
|
||||
else
|
||||
GAPPS_VARIANT=""
|
||||
fi
|
||||
|
||||
#if (YesNoBox '([title]="Remove Amazon Appstore" [text]="Do you want to keep Amazon Appstore?")'); then
|
||||
# REMOVE_AMAZON=""
|
||||
#else
|
||||
# REMOVE_AMAZON="--remove-amazon"
|
||||
#fi
|
||||
# if (YesNoBox '([title]="Remove Amazon Appstore" [text]="Do you want to keep Amazon Appstore?")'); then
|
||||
# REMOVE_AMAZON=""
|
||||
# else
|
||||
# REMOVE_AMAZON="--remove-amazon"
|
||||
# fi
|
||||
|
||||
if (YesNoBox '([title]="Compress output" [text]="Do you want to compress the output?")'); then
|
||||
COMPRESS_OUTPUT="--compress"
|
||||
|
@ -170,10 +139,6 @@ if [ -n "$MAGISK_VER" ]; then
|
|||
COMMAND_LINE+=(--magisk-ver "$MAGISK_VER")
|
||||
fi
|
||||
|
||||
#if [ -n "$GAPPS_VARIANT" ]; then
|
||||
# COMMAND_LINE+=(--gapps-variant "$GAPPS_VARIANT")
|
||||
#fi
|
||||
|
||||
if [ -n "$COMPRESS_FORMAT" ]; then
|
||||
COMMAND_LINE+=(--compress-format "$COMPRESS_FORMAT")
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue