Browse Source

Update alpine-vaultwarden-v5-install.sh

revert 12d5a78 Alpine doesn't like parameter expansion `${prompt,,}`
fixes https://github.com/tteck/Proxmox/issues/1144
tteckster 2 years ago
parent
commit
ba7a7c1720
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/alpine-vaultwarden-v5-install.sh

+ 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|yes)$ ]]; then
+    if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "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"