about summary refs log tree commit diff
path: root/tests/install-darwin.sh
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-07-13T21·22-0400
committerGraham Christensen <graham@grahamc.com>2017-07-14T16·11-0400
commit1c7ce2a018a081dd90dfefee6d1ca7e0c9fd66d9 (patch)
treea053fc84ac08e1763b153196905946b7dfee3f8f /tests/install-darwin.sh
parent73a57a2f22668394740e1f642573b67a1316dee7 (diff)
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.
Diffstat (limited to '')
-rwxr-xr-xtests/install-darwin.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/install-darwin.sh b/tests/install-darwin.sh
index d2a7ab456e..b7f8746728 100755
--- a/tests/install-darwin.sh
+++ b/tests/install-darwin.sh
@@ -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