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
All checks were successful
Nix Format Check / check-format (push) Successful in 39s
This commit is contained in:
parent
041307aaea
commit
e06b93215f
3
setup.sh
3
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..."
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user