fix: setup wizard compatible sh/dash (read -s fallback)
Some checks failed
Deploy to Homelab / Deploy Wordly to 192.168.1.151 (push) Has been cancelled
Deploy to Homelab / Deploy Monitoring (if configured) (push) Has been cancelled

Use stty -echo instead of read -s for password input,
compatible with dash/sh shells found on Ubuntu/Debian servers.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 12:16:27 +02:00
parent a9fe6c1fc6
commit 3d01f53924

View File

@@ -62,7 +62,9 @@ ask_password() {
local varname="$2"
echo -ne "${YELLOW}${prompt}${NC}: "
read -rs answer
stty -echo 2>/dev/null || true
read -r answer
stty echo 2>/dev/null || true
echo ""
eval "$varname=\"\$answer\""
}