Procházet zdrojové kódy

Merge pull request #119 from tteck/unbound_variable

Fix possible unbound variable
tteckster před 3 roky
rodič
revize
d6843bcd0f
26 změnil soubory, kde provedl 80 přidání a 400 odebrání
  1. 3 15
      ct/adguard.sh
  2. 3 15
      ct/daemonsync.sh
  3. 3 15
      ct/dashy.sh
  4. 3 15
      ct/debian.sh
  5. 4 20
      ct/docker.sh
  6. 3 15
      ct/esphome.sh
  7. 3 15
      ct/grafana.sh
  8. 3 15
      ct/heimdalldashboard.sh
  9. 4 20
      ct/homeassistant.sh
  10. 3 15
      ct/homebridge.sh
  11. 3 15
      ct/influxdb.sh
  12. 3 15
      ct/mariadb.sh
  13. 3 15
      ct/motioneye.sh
  14. 3 15
      ct/mqtt.sh
  15. 3 15
      ct/nginx-proxy-manager.sh
  16. 3 15
      ct/node-red.sh
  17. 3 15
      ct/omada.sh
  18. 3 15
      ct/photoprism.sh
  19. 3 15
      ct/pihole.sh
  20. 3 15
      ct/technitiumdns.sh
  21. 3 15
      ct/ubuntu.sh
  22. 3 15
      ct/unifi.sh
  23. 3 15
      ct/vaultwarden.sh
  24. 3 15
      ct/wireguard.sh
  25. 3 15
      ct/zigbee2mqtt.sh
  26. 3 15
      ct/zwavejs2mqtt.sh

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 4 - 20
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 4 - 20
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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

+ 3 - 15
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