fix: setup wizard compatible sh/dash (read -s fallback)
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:
@@ -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\""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user