From e06b93215fd30572ae15e39f98167bfea719349e Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 15 Jan 2025 11:38:51 +0100 Subject: [PATCH] ensure user input is read from the terminal in the warning prompt --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index d6f4729..1194fac 100755 --- a/setup.sh +++ b/setup.sh @@ -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..." }