Fix shellcheck

This commit is contained in:
Syuugo 2024-03-03 13:06:26 +09:00 committed by GitHub
parent 502cd8bb5e
commit 8d374b736c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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