diff --git a/ct/adguard.sh b/ct/adguard.sh index ac8278f8..9838585b 100644 --- a/ct/adguard.sh +++ b/ct/adguard.sh @@ -43,11 +43,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -71,7 +68,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -87,11 +83,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -115,7 +108,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -132,11 +124,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -160,7 +149,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/daemonsync.sh b/ct/daemonsync.sh index c6403ba5..5b47dfa6 100644 --- a/ct/daemonsync.sh +++ b/ct/daemonsync.sh @@ -41,11 +41,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -69,7 +66,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -85,11 +81,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -113,7 +106,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -130,11 +122,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -158,7 +147,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/dashy.sh b/ct/dashy.sh index fc62084b..49e63390 100644 --- a/ct/dashy.sh +++ b/ct/dashy.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/debian.sh b/ct/debian.sh index ebd9f482..fc7f98d4 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/docker.sh b/ct/docker.sh index b1ad914a..43ceb81b 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -39,11 +39,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -67,7 +64,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -83,11 +79,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -111,7 +104,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${RD} If Using ZFS, You Have Storage Driver Options${CL}\n" @@ -130,11 +122,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -158,7 +147,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done show_menu4(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -176,11 +164,8 @@ option_picked(){ printf " ${YW}${message4}${CL}\n" } show_menu4 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -204,7 +189,6 @@ while [ $opt != '' ] show_menu4; ;; esac - fi done set -o errexit diff --git a/ct/esphome.sh b/ct/esphome.sh index 06f9d513..8fcbf29b 100644 --- a/ct/esphome.sh +++ b/ct/esphome.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/grafana.sh b/ct/grafana.sh index 0e7244df..04d65207 100644 --- a/ct/grafana.sh +++ b/ct/grafana.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/heimdalldashboard.sh b/ct/heimdalldashboard.sh index fac092ed..1a60e74c 100644 --- a/ct/heimdalldashboard.sh +++ b/ct/heimdalldashboard.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index e25ce4d5..938b6921 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${RD} If Using ZFS, You Have Storage Driver Options${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done show_menu4(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -177,11 +165,8 @@ option_picked(){ printf " ${YW}${message4}${CL}\n" } show_menu4 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -205,7 +190,6 @@ while [ $opt != '' ] show_menu4; ;; esac - fi done set -o errexit diff --git a/ct/homebridge.sh b/ct/homebridge.sh index 8f6eb118..3e045697 100644 --- a/ct/homebridge.sh +++ b/ct/homebridge.sh @@ -39,11 +39,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -67,7 +64,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -83,11 +79,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -111,7 +104,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -128,11 +120,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -156,7 +145,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/influxdb.sh b/ct/influxdb.sh index 119d2a4e..0d9e113c 100644 --- a/ct/influxdb.sh +++ b/ct/influxdb.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/mariadb.sh b/ct/mariadb.sh index 73e2134a..233296d4 100644 --- a/ct/mariadb.sh +++ b/ct/mariadb.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/motioneye.sh b/ct/motioneye.sh index 92894a21..0c3449b3 100644 --- a/ct/motioneye.sh +++ b/ct/motioneye.sh @@ -41,11 +41,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -69,7 +66,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -85,11 +81,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -113,7 +106,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -130,11 +122,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -158,7 +147,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/mqtt.sh b/ct/mqtt.sh index 254f4619..7bd70ed0 100644 --- a/ct/mqtt.sh +++ b/ct/mqtt.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/nginx-proxy-manager.sh b/ct/nginx-proxy-manager.sh index 670cbdcd..2b147d60 100644 --- a/ct/nginx-proxy-manager.sh +++ b/ct/nginx-proxy-manager.sh @@ -39,11 +39,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -67,7 +64,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -83,11 +79,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -111,7 +104,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -128,11 +120,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -156,7 +145,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/node-red.sh b/ct/node-red.sh index 504ddc71..9ecc7d17 100644 --- a/ct/node-red.sh +++ b/ct/node-red.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/omada.sh b/ct/omada.sh index af8e3b65..6ec8036b 100644 --- a/ct/omada.sh +++ b/ct/omada.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/photoprism.sh b/ct/photoprism.sh index 076aefef..31035d89 100644 --- a/ct/photoprism.sh +++ b/ct/photoprism.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/pihole.sh b/ct/pihole.sh index 2667f184..9a0abcdd 100644 --- a/ct/pihole.sh +++ b/ct/pihole.sh @@ -41,11 +41,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -69,7 +66,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -85,11 +81,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -113,7 +106,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -130,11 +122,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -158,7 +147,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index 15ffdf42..2d960480 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index d24150a7..4152e1d0 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/unifi.sh b/ct/unifi.sh index 6b485dd6..077f3cc1 100644 --- a/ct/unifi.sh +++ b/ct/unifi.sh @@ -41,11 +41,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -69,7 +66,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -85,11 +81,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -113,7 +106,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -130,11 +122,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -158,7 +147,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/vaultwarden.sh b/ct/vaultwarden.sh index 6e8c43b7..fe16570c 100644 --- a/ct/vaultwarden.sh +++ b/ct/vaultwarden.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/wireguard.sh b/ct/wireguard.sh index e6774094..7137c4d3 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -40,11 +40,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -68,7 +65,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -84,11 +80,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -112,7 +105,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -129,11 +121,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -157,7 +146,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/zigbee2mqtt.sh b/ct/zigbee2mqtt.sh index 9d0edba5..f4a0c0fd 100644 --- a/ct/zigbee2mqtt.sh +++ b/ct/zigbee2mqtt.sh @@ -42,11 +42,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -70,7 +67,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -86,11 +82,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -114,7 +107,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -131,11 +123,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -159,7 +148,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit diff --git a/ct/zwavejs2mqtt.sh b/ct/zwavejs2mqtt.sh index 65034e6c..72669df9 100644 --- a/ct/zwavejs2mqtt.sh +++ b/ct/zwavejs2mqtt.sh @@ -43,11 +43,8 @@ option_picked(){ printf " ${YW}${message1}${CL}\n" } show_menu -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -71,7 +68,6 @@ while [ $opt != '' ] show_menu; ;; esac - fi done show_menu2(){ printf " ${YW} 1)${GN} Use Automatic Login ${CL}\n" @@ -87,11 +83,8 @@ option_picked(){ printf " ${YW}${message2}${CL}\n" } show_menu2 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -115,7 +108,6 @@ while [ $opt != '' ] show_menu2; ;; esac - fi done show_menu3(){ printf " ${YW} 1)${GN} Automatic DHCP ${CL}\n" @@ -132,11 +124,8 @@ option_picked(){ printf " ${YW}${message3}${CL}\n" } show_menu3 -while [ $opt != '' ] +while [ "$opt" != " " ] do - if [ $opt = '' ]; then - exit; - else case $opt in 1) clear; header_info; @@ -160,7 +149,6 @@ while [ $opt != '' ] show_menu3; ;; esac - fi done set -o errexit