mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Assume yes if we have no TTY
Starve the TTY of input to ensure this works, but provide yes to the current installer to handle the current broken case.
This commit is contained in:
parent
73a57a2f22
commit
1c7ce2a018
2 changed files with 14 additions and 2 deletions
|
@ -53,7 +53,8 @@ trap finish EXIT
|
|||
|
||||
# First setup Nix
|
||||
cleanup
|
||||
curl https://nixos.org/nix/install | bash
|
||||
curl -o install https://nixos.org/nix/install
|
||||
yes | bash ./install
|
||||
verify
|
||||
|
||||
|
||||
|
@ -82,7 +83,7 @@ verify
|
|||
|
||||
cleanup
|
||||
|
||||
yes | ./install
|
||||
echo -n "" | ./install
|
||||
verify
|
||||
|
||||
cleanup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue