feat: add interactive Windows installer

This commit is contained in:
2026-09-11 10:10:48 +00:00
parent 9e181b81dc
commit 6882a6808a
11 changed files with 390 additions and 20 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ password_hash_from_terminal() {
password=
restore_tty=false
if [ "$password_stdin" = true ]; then
IFS= read -r password || fail "could not read password from stdin"
# Password files commonly omit a final newline. POSIX read returns
# non-zero at that EOF even after assigning the final nonempty line.
IFS= read -r password || [ -n "$password" ] || fail "could not read password from stdin"
else
[ -t 0 ] || fail "stdin is not a terminal; use --web-password-stdin"
printf 'Fixture password for %s: ' "$RDP_ACCESS_WEB_USER" >&2