Code review

This commit is contained in:
MatMoul 2023-11-19 17:38:14 +01:00
parent c523441c41
commit a6af75ccb9

View File

@ -23,7 +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
@ -94,7 +104,10 @@ NanoSetConfig() {
}
Customizations() {
SEL=$(whiptail --title "Additions" --checklist "" 0 0 0 "alias" "" on "ps1" "" on "issue" "" on 3>&1 1>&2 2>&3)
SEL=$(whiptail --title "Additions" --checklist "" 0 0 0 \
"alias" "" on \
"ps1" "" on \
"issue" "" on 3>&1 1>&2 2>&3)
# shellcheck disable=SC2181
if [ "${?}" = "0" ]; then
for ITM in ${SEL}; do
@ -118,7 +131,12 @@ IssueSetContent() {
}
InstApps() {
SEL=$(whiptail --title "More Apps" --checklist "" 0 0 0 "traefik" "" off "gitea" "" off "docker" "" off "portainer" "" off "rancher" "" off 3>&1 1>&2 2>&3)
SEL=$(whiptail --title "More Apps" --checklist "" 0 0 0 \
"traefik" "" off \
"gitea" "" off \
"docker" "" off \
"portainer" "" off \
"rancher" "" off 3>&1 1>&2 2>&3)
# shellcheck disable=SC2181
if [ "${?}" = "0" ]; then
for ITM in ${SEL}; do