Default the install prompts to yes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-11-08 23:36:15 +08:00
1 parent 3935e2d5e2
commit 6064bd650d
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -126,9 +126,9 @@ fi
if [[ -z "${WIN11_VM_INSTALL_ISO:-}" ]] && ! "$downloader" --print-path windows11 --iso >/dev/null 2>&1; then
"$downloader" --print-path windows11 --iso >&2 || true
if { : </dev/tty >/dev/tty; } 2>/dev/null; then
printf 'Download the Windows 11 ISO now? [y/N] ' >/dev/tty
printf 'Download the Windows 11 ISO now? [Y/n] ' >/dev/tty
read -r answer </dev/tty || answer=
[[ "$answer" == [yY] || "$answer" == [yY][eE][sS] ]] || exit 1
[[ -z "$answer" || "$answer" == [yY] || "$answer" == [yY][eE][sS] ]] || exit 1
"$downloader" windows11 || exit 1
fi
fi