Code review

This commit is contained in:
MatMoul 2023-11-19 20:41:02 +01:00
parent eeb446eaf3
commit 8126537ad6

View File

@ -23,17 +23,17 @@ APKUpdateDist() {
}
APKInstallBase() {
apk add newt
SEL=$(whiptail --title "Base Apps" --checklist "" 0 0 0 \
"curl" "" on \
"lsof" "" on \
"bash-completion" "" on \
"iptables" "" on \
"ip6tables" "" on \
"openssh-server" "" on \
"gnupg" "" on \
"rsync" "" on \
"net-snmp" "" on \
"nano" "" on 3>&1 1>&2 2>&3)
SEL=$(whiptail --title "Base Apps" --checklist "" 0 0 0 \
"curl" "" on \
"lsof" "" on \
"bash-completion" "" on \
"iptables" "" on \
"ip6tables" "" on \
"openssh-server" "" on \
"gnupg" "" on \
"rsync" "" on \
"net-snmp" "" on \
"nano" "" on 3>&1 1>&2 2>&3)
# shellcheck disable=SC2181
if [ "${?}" = "0" ]; then
for ITM in ${SEL}; do
@ -156,11 +156,11 @@ Reboot() {
}
while [ ${#} -gt 0 ]; do
case ${1} in
case ${1} in
--help) showHelp; exit 0;;
-b | --base-url) BASE_URL="${2}"; shift;;
*) shift;;
esac
esac
done
main