Compare commits

...

2 Commits

Author SHA1 Message Date
tteckster c47326ff25
Update alpine-vaultwarden-v5-install.sh
match input if it's "y" or "yes" (case-insensitive)
change  `=~` operator in favor of  `grep -Ei` in Alpine Linux
2023-03-10 09:50:48 -05:00
tteckster ba7a7c1720
Update alpine-vaultwarden-v5-install.sh
revert 12d5a78 Alpine doesn't like parameter expansion `${prompt,,}`
fixes https://github.com/tteck/Proxmox/issues/1144
2023-03-10 09:27:46 -05:00
1 changed files with 1 additions and 1 deletions

View File

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