ensure user input is read from the terminal in the warning prompt
All checks were successful
Nix Format Check / check-format (push) Successful in 39s

This commit is contained in:
Menno van Leeuwen 2025-01-15 11:38:51 +01:00
parent 041307aaea
commit e06b93215f
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -401,10 +401,11 @@ warning_prompt() {
log_error "This script will modify system files and may require sudo permissions.\n"
log_info "This script works best on a fresh NixOS/Fedora installation."
log_info "Type 'continue' to continue or Ctrl+C to exit."
read -r -p "> " continue
read -r -p "> " continue < /dev/tty
if [ "$continue" != "continue" ]; then
die "Exiting..."
fi
log_info "Starting setup..."
}