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
pull/1150/head
tteckster 2 years ago committed by GitHub
parent ba7a7c1720
commit c47326ff25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" || $prompt == "Y" || $prompt == "yes" || $prompt == "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"

Loading…
Cancel
Save

Powered by BW's shoe-string budget.