From 8126537ad6a4be49db18078e24a4a860ff8c490f Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 19 Nov 2023 20:41:02 +0100 Subject: [PATCH] Code review --- alpine/init.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/alpine/init.sh b/alpine/init.sh index 82f30e1..20b5663 100644 --- a/alpine/init.sh +++ b/alpine/init.sh @@ -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