about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-10-12T11·06+0200
committerGitHub <noreply@github.com>2017-10-12T11·06+0200
commit29205e0218b999a5d271401cfd41ee8cc224f329 (patch)
treea46eacd59ac00d3c7d5d56d31eb1e72f669f73df /scripts
parent177aee07c6cfe000da23e80691ffc19ccbc6c291 (diff)
parent92f9d18aa030805189b7bf31bb1d129c49edc83f (diff)
Merge pull request #1586 from acowley/patch-2
install-darwin-multi-user: relax assumption check
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-darwin-multi-user.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh
index 5b466ac3c882..9bb33d4177ed 100644
--- a/scripts/install-darwin-multi-user.sh
+++ b/scripts/install-darwin-multi-user.sh
@@ -318,7 +318,7 @@ EOF
 
     for file in ~/.bash_profile ~/.bash_login ~/.profile ~/.zshenv ~/.zprofile ~/.zshrc ~/.zlogin; do
         if [ -f "$file" ]; then
-            if grep -l ".nix-profile" "$file"; then
+            if grep -l "^[^#].*.nix-profile" "$file"; then
                 failure <<EOF
 I found a reference to a ".nix-profile" in $file.
 This has a high chance of breaking a new nix installation. It was most