Merge pull request #1586 from acowley/patch-2

install-darwin-multi-user: relax assumption check
This commit is contained in:
Eelco Dolstra 2017-10-12 13:06:25 +02:00 committed by GitHub
commit 29205e0218

View file

@ -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