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