about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-07-13T00·29-0400
committerGraham Christensen <graham@grahamc.com>2017-07-14T16·11-0400
commit92ca93528fe7d29b8909a89b0f9c7a9e23627fd5 (patch)
treec04072be648cde039277f12fbe762b045541ce15 /tests
parent61ea9e9867ad426eee064242963299553b8db9f3 (diff)
Clean up nix hints from the old insstaller
Diffstat (limited to 'tests')
-rwxr-xr-xtests/install-darwin.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/install-darwin.sh b/tests/install-darwin.sh
index 4a6ab7d6471a..9084d92c23e1 100755
--- a/tests/install-darwin.sh
+++ b/tests/install-darwin.sh
@@ -19,6 +19,13 @@ cleanup() {
         fi
     done
 
+    for file in ~/.bash_profile ~/.bash_login ~/.profile ~/.zshenv ~/.zprofile ~/.zshrc ~/.zlogin; do
+        cat "$file" | grep -v nix-profile > "$file.next"
+        mv "$file.next" "$file"
+    done
+
+
+
     for i in $(seq 1 $(sysctl -n hw.ncpu)); do
         sudo /usr/bin/dscl . -delete "/Users/nixbld$i" || true
     done
@@ -64,9 +71,6 @@ verify
 
     set -eux
 
-    cat ~/.profile | grep -v nix-profile > ~/.profile-next
-    mv ~/.profile-next ~/.profile
-
     cleanup
 
     yes | ./install