浏览代码

match input if it's "y" or "yes" (case-insensitive)

tteckster 2 年之前
父节点
当前提交
12d5a78a30
共有 87 个文件被更改,包括 104 次插入104 次删除
  1. 1 1
      install/adguard-v5-install.sh
  2. 1 1
      install/alpine-vaultwarden-v5-install.sh
  3. 1 1
      install/audiobookshelf-v5-install.sh
  4. 1 1
      install/autobrr-v5-install.sh
  5. 1 1
      install/blocky-v5-install.sh
  6. 1 1
      install/casaos-v5-install.sh
  7. 1 1
      install/changedetection-v5-install.sh
  8. 1 1
      install/cronicle-v5-install.sh
  9. 1 1
      install/daemonsync-v5-install.sh
  10. 1 1
      install/dashy-v5-install.sh
  11. 1 1
      install/debian-v5-install.sh
  12. 1 1
      install/deconz-v5-install.sh
  13. 1 1
      install/deluge-v5-install.sh
  14. 1 1
      install/devuan-v5-install.sh
  15. 3 3
      install/docker-v5-install.sh
  16. 1 1
      install/emby-v5-install.sh
  17. 1 1
      install/emqx-v5-install.sh
  18. 1 1
      install/esphome-v5-install.sh
  19. 1 1
      install/go2rtc-v5-install.sh
  20. 1 1
      install/grafana-v5-install.sh
  21. 1 1
      install/grocy-v5-install.sh
  22. 1 1
      install/heimdalldashboard-v5-install.sh
  23. 1 1
      install/homeassistant-core-v5-install.sh
  24. 1 1
      install/homeassistant-v5-install.sh
  25. 1 1
      install/homebridge-v5-install.sh
  26. 1 1
      install/homepage-v5-install.sh
  27. 1 1
      install/homer-v5-install.sh
  28. 1 1
      install/hyperion-v5-install.sh
  29. 2 2
      install/influxdb-v5-install.sh
  30. 1 1
      install/iobroker-v5-install.sh
  31. 1 1
      install/jackett-v5-install.sh
  32. 1 1
      install/jellyfin-v5-install.sh
  33. 2 2
      install/k0s-v5-install.sh
  34. 1 1
      install/kavita-v5-install.sh
  35. 1 1
      install/keycloak-v5-install.sh
  36. 1 1
      install/lidarr-v5-install.sh
  37. 1 1
      install/magicmirror-v5-install.sh
  38. 2 2
      install/mariadb-v5-install.sh
  39. 1 1
      install/meshcentral-v5-install.sh
  40. 1 1
      install/motioneye-v5-install.sh
  41. 1 1
      install/mqtt-v5-install.sh
  42. 1 1
      install/n8n-v5-install.sh
  43. 1 1
      install/navidrome-v5-install.sh
  44. 1 1
      install/nextcloudpi-v5-install.sh
  45. 1 1
      install/nginxproxymanager-v5-install.sh
  46. 1 1
      install/nocodb-v5-install.sh
  47. 1 1
      install/node-red-v5-install.sh
  48. 1 1
      install/omada-v5-install.sh
  49. 1 1
      install/omv-v5-install.sh
  50. 1 1
      install/openhab-v5-install.sh
  51. 1 1
      install/paperless-ngx-v5-install.sh
  52. 1 1
      install/photoprism-v5-install.sh
  53. 1 1
      install/pihole-v5-install.sh
  54. 1 1
      install/plex-v5-install.sh
  55. 1 1
      install/podman-homeassistant-v5-install.sh
  56. 1 1
      install/podman-v5-install.sh
  57. 2 2
      install/postgresql-v5-install.sh
  58. 1 1
      install/prometheus-v5-install.sh
  59. 1 1
      install/prowlarr-v5-install.sh
  60. 1 1
      install/qbittorrent-v5-install.sh
  61. 1 1
      install/radarr-v5-install.sh
  62. 1 1
      install/readarr-v5-install.sh
  63. 1 1
      install/rstptoweb-v5-install.sh
  64. 1 1
      install/sabnzbd-v5-install.sh
  65. 2 2
      install/scrypted-v5-install.sh
  66. 1 1
      install/shinobi-v5-install.sh
  67. 1 1
      install/sonarr-v5-install.sh
  68. 1 1
      install/syncthing-v5-install.sh
  69. 1 1
      install/tdarr-v5-install.sh
  70. 1 1
      install/technitiumdns-v5-install.sh
  71. 1 1
      install/transmission-v5-install.sh
  72. 1 1
      install/trilium-v5-install.sh
  73. 1 1
      install/ubuntu-v5-install.sh
  74. 1 1
      install/umbrel-v5-install.sh
  75. 2 2
      install/unifi-v5-install.sh
  76. 1 1
      install/uptimekuma-v5-install.sh
  77. 1 1
      install/vaultwarden-v5-install.sh
  78. 1 1
      install/whisparr-v5-install.sh
  79. 1 1
      install/whoogle-v5-install.sh
  80. 1 1
      install/wikijs-v5-install.sh
  81. 1 1
      install/wireguard-v5-install.sh
  82. 1 1
      install/yunohost-v5-install.sh
  83. 1 1
      install/zigbee2mqtt-v5-install.sh
  84. 1 1
      install/zwave-js-ui-v5-install.sh
  85. 2 2
      misc/bluetooth.sh
  86. 7 7
      misc/post-pbs-install.sh
  87. 3 3
      misc/pyenv.sh

+ 1 - 1
install/adguard-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/alpine-vaultwarden-v5-install.sh

@@ -74,7 +74,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/audiobookshelf-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/autobrr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/blocky-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/casaos-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/changedetection-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/cronicle-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/daemonsync-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/dashy-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/debian-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/deconz-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/deluge-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/devuan-v5-install.sh

@@ -64,7 +64,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 3 - 3
install/docker-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -117,7 +117,7 @@ $STD sh <(curl -sSL https://get.docker.com)
 msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
 msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
 
 
 read -r -p "Would you like to add Portainer? <y/N> " prompt
 read -r -p "Would you like to add Portainer? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   PORTAINER="Y"
   PORTAINER="Y"
 else
 else
   PORTAINER="N"
   PORTAINER="N"
@@ -138,7 +138,7 @@ if [[ $PORTAINER == "Y" ]]; then
 fi
 fi
 
 
 read -r -p "Would you like to add Docker Compose? <y/N> " prompt
 read -r -p "Would you like to add Docker Compose? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   DOCKER_COMPOSE="Y"
   DOCKER_COMPOSE="Y"
 else
 else
   DOCKER_COMPOSE="N"
   DOCKER_COMPOSE="N"

+ 1 - 1
install/emby-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/emqx-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/esphome-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/go2rtc-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/grafana-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/grocy-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/heimdalldashboard-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/homeassistant-core-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/homeassistant-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/homebridge-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/homepage-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/homer-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/hyperion-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
install/influxdb-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -119,7 +119,7 @@ $STD systemctl enable --now influxdb
 msg_ok "Installed InfluxDB"
 msg_ok "Installed InfluxDB"
 
 
 read -r -p "Would you like to add Telegraf? <y/N> " prompt
 read -r -p "Would you like to add Telegraf? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   TELEGRAF="Y"
   TELEGRAF="Y"
 else
 else
   TELEGRAF="N"
   TELEGRAF="N"

+ 1 - 1
install/iobroker-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/jackett-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/jellyfin-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
install/k0s-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -101,7 +101,7 @@ k0s config create > /etc/k0s/k0s.yaml
 msg_ok "Installed k0s Kubernetes"
 msg_ok "Installed k0s Kubernetes"
 
 
 read -r -p "Would you like to add Helm Package Manager? <y/N> " prompt
 read -r -p "Would you like to add Helm Package Manager? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   HELM="Y"
   HELM="Y"
 else
 else
   HELM="N"
   HELM="N"

+ 1 - 1
install/kavita-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/keycloak-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/lidarr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/magicmirror-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
install/mariadb-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -99,7 +99,7 @@ $STD apt-get install -y mariadb-server
 msg_ok "Installed MariaDB"
 msg_ok "Installed MariaDB"
 
 
 read -r -p "Would you like to add Adminer? <y/N> " prompt
 read -r -p "Would you like to add Adminer? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   ADMINER="Y"
   ADMINER="Y"
 else
 else
   ADMINER="N"
   ADMINER="N"

+ 1 - 1
install/meshcentral-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/motioneye-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/mqtt-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/n8n-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/navidrome-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/nextcloudpi-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/nginxproxymanager-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/nocodb-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/node-red-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/omada-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/omv-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/openhab-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/paperless-ngx-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/photoprism-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/pihole-v5-install.sh

@@ -70,7 +70,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/plex-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/podman-homeassistant-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/podman-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
install/postgresql-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -206,7 +206,7 @@ sudo systemctl restart postgresql
 msg_ok "Installed PostgreSQL"
 msg_ok "Installed PostgreSQL"
 
 
 read -r -p "Would you like to add Adminer? <y/N> " prompt
 read -r -p "Would you like to add Adminer? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   ADMINER="Y"
   ADMINER="Y"
 else
 else
   ADMINER="N"
   ADMINER="N"

+ 1 - 1
install/prometheus-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/prowlarr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/qbittorrent-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/radarr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/readarr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/rstptoweb-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/sabnzbd-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
install/scrypted-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -148,7 +148,7 @@ $STD python3 -m pip install aiofiles debugpy typing_extensions typing
 msg_ok "Installed Python3"
 msg_ok "Installed Python3"
 
 
 read -r -p "Would you like to add Coral Edge TPU support? <y/N> " prompt
 read -r -p "Would you like to add Coral Edge TPU support? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   CORAL="Y"
   CORAL="Y"
 else
 else
   CORAL="N"
   CORAL="N"

+ 1 - 1
install/shinobi-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/sonarr-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/syncthing-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/tdarr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/technitiumdns-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/transmission-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/trilium-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/ubuntu-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/umbrel-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
install/unifi-v5-install.sh

@@ -70,7 +70,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"
@@ -94,7 +94,7 @@ $STD apt-get install -y mc
 msg_ok "Installed Dependencies"
 msg_ok "Installed Dependencies"
 
 
 read -r -p "Local Controller? <y/N> " prompt
 read -r -p "Local Controller? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   LOCAL="--local-controller"
   LOCAL="--local-controller"
 else
 else
   LOCAL=""
   LOCAL=""

+ 1 - 1
install/uptimekuma-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/vaultwarden-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/whisparr-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/whoogle-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/wikijs-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/wireguard-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/yunohost-v5-install.sh

@@ -68,7 +68,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/zigbee2mqtt-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 1 - 1
install/zwave-js-ui-v5-install.sh

@@ -69,7 +69,7 @@ trap - ERR
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
 if ping -c 1 -W 1 1.1.1.1 &> /dev/null; then msg_ok "Internet Connected"; else
   msg_error "Internet NOT Connected"
   msg_error "Internet NOT Connected"
     read -r -p "Would you like to continue anyway? <y/N> " prompt
     read -r -p "Would you like to continue anyway? <y/N> " prompt
-    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+    if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
       echo -e " ⚠️  ${RD}Expect Issues Without Internet${CL}"
     else
     else
       echo -e " 🖧  Check Network Settings"
       echo -e " 🖧  Check Network Settings"

+ 2 - 2
misc/bluetooth.sh

@@ -41,7 +41,7 @@ clear
 
 
 EOF
 EOF
 read -r -p "Switch from dbus-daemon to dbus-broker? <y/N> " prompt
 read -r -p "Switch from dbus-daemon to dbus-broker? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
 cat <<EOF >>/etc/apt/sources.list
 cat <<EOF >>/etc/apt/sources.list
 deb http://deb.debian.org/debian bullseye-backports main contrib non-free
 deb http://deb.debian.org/debian bullseye-backports main contrib non-free
 
 
@@ -52,7 +52,7 @@ apt-get -t bullseye-backports install -y dbus-broker &>/dev/null
 systemctl enable dbus-broker.service &>/dev/null
 systemctl enable dbus-broker.service &>/dev/null
 fi
 fi
 read -r -p "Install BlueZ? <y/N> " prompt
 read -r -p "Install BlueZ? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
 apt-get -t bullseye-backports install -y bluez* &>/dev/null
 apt-get -t bullseye-backports install -y bluez* &>/dev/null
 fi
 fi
 echo -e "Finished, reboot for changes to take affect"
 echo -e "Finished, reboot for changes to take affect"

+ 7 - 7
misc/post-pbs-install.sh

@@ -58,7 +58,7 @@ function msg_ok() {
 clear
 clear
 header_info
 header_info
 read -r -p "Disable Enterprise Repository? <y/N> " prompt
 read -r -p "Disable Enterprise Repository? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Disabling Enterprise Repository"
     msg_info "Disabling Enterprise Repository"
     sleep 2
     sleep 2
     sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pbs-enterprise.list
     sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pbs-enterprise.list
@@ -66,7 +66,7 @@ if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]
 fi
 fi
 
 
 read -r -p "Add/Correct PBS Sources (sources.list)? <y/N> " prompt
 read -r -p "Add/Correct PBS Sources (sources.list)? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Adding or Correcting PBS Sources"
     msg_info "Adding or Correcting PBS Sources"
     cat <<EOF >/etc/apt/sources.list
     cat <<EOF >/etc/apt/sources.list
 deb http://ftp.debian.org/debian bullseye main contrib
 deb http://ftp.debian.org/debian bullseye main contrib
@@ -78,7 +78,7 @@ EOF
 fi
 fi
 
 
 read -r -p "Enable No-Subscription Repository? <y/N> " prompt
 read -r -p "Enable No-Subscription Repository? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Enabling No-Subscription Repository"
     msg_info "Enabling No-Subscription Repository"
     cat <<EOF >>/etc/apt/sources.list
     cat <<EOF >>/etc/apt/sources.list
 deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
 deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
@@ -88,7 +88,7 @@ EOF
 fi
 fi
 
 
 read -r -p "Add (Disabled) Beta/Test Repository? <y/N> " prompt
 read -r -p "Add (Disabled) Beta/Test Repository? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Adding Beta/Test Repository and set disabled"
     msg_info "Adding Beta/Test Repository and set disabled"
     cat <<EOF >>/etc/apt/sources.list
     cat <<EOF >>/etc/apt/sources.list
 # deb http://download.proxmox.com/debian/pbs bullseye pbstest
 # deb http://download.proxmox.com/debian/pbs bullseye pbstest
@@ -98,7 +98,7 @@ EOF
 fi
 fi
 
 
 read -r -p "Disable Subscription Nag? <y/N> " prompt
 read -r -p "Disable Subscription Nag? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Disabling Subscription Nag"
     msg_info "Disabling Subscription Nag"
     echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
     echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
     apt --reinstall install proxmox-widget-toolkit &>/dev/null
     apt --reinstall install proxmox-widget-toolkit &>/dev/null
@@ -106,7 +106,7 @@ if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]
 fi
 fi
 
 
 read -r -p "Update Proxmox Backup Server now? <y/N> " prompt
 read -r -p "Update Proxmox Backup Server now? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Updating Proxmox Backup Server (Patience)"
     msg_info "Updating Proxmox Backup Server (Patience)"
     apt-get update &>/dev/null
     apt-get update &>/dev/null
     apt-get -y dist-upgrade &>/dev/null
     apt-get -y dist-upgrade &>/dev/null
@@ -114,7 +114,7 @@ if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]
 fi
 fi
 
 
 read -r -p "Reboot Proxmox Backup Server now? <y/N> " prompt
 read -r -p "Reboot Proxmox Backup Server now? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
     msg_info "Rebooting Proxmox Backup Server"
     msg_info "Rebooting Proxmox Backup Server"
     sleep 2
     sleep 2
     msg_ok "Completed Post Install Routines"
     msg_ok "Completed Post Install Routines"

+ 3 - 3
misc/pyenv.sh

@@ -69,7 +69,7 @@ pyenv install 3.10.8 &>/dev/null
 pyenv global 3.10.8
 pyenv global 3.10.8
 msg_ok "Installed Python 3.10.8"
 msg_ok "Installed Python 3.10.8"
 read -r -p "Would you like to install Home Assistant Beta? <y/N> " prompt
 read -r -p "Would you like to install Home Assistant Beta? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   HA="Y"
   HA="Y"
 fi
 fi
 if [[ $HA == "Y" ]]; then
 if [[ $HA == "Y" ]]; then
@@ -101,7 +101,7 @@ hass
 fi
 fi
 
 
 read -r -p "Would you like to install ESPHome Beta? <y/N> " prompt
 read -r -p "Would you like to install ESPHome Beta? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   ESP="Y"
   ESP="Y"
 fi
 fi
 if [[ $ESP == "Y" ]]; then
 if [[ $ESP == "Y" ]]; then
@@ -146,7 +146,7 @@ exec $SHELL
 fi
 fi
 
 
 read -r -p "Would you like to install Matter-Server (Beta)? <y/N> " prompt
 read -r -p "Would you like to install Matter-Server (Beta)? <y/N> " prompt
-if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
+if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
   MTR="Y"
   MTR="Y"
 fi
 fi
 if [[ $MTR == "Y" ]]; then
 if [[ $MTR == "Y" ]]; then