install-darwin-multi-user: relax assumption check
The installer will error out if a user's shell configuration includes any mention of ~nix-profile~, even if this is in a comment. This change is designed to do the bare minimum to ignore lines beginning with a `#`.
This commit is contained in:
parent
f3e0d46821
commit
92f9d18aa0
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ EOF
|
||||||
|
|
||||||
for file in ~/.bash_profile ~/.bash_login ~/.profile ~/.zshenv ~/.zprofile ~/.zshrc ~/.zlogin; do
|
for file in ~/.bash_profile ~/.bash_login ~/.profile ~/.zshenv ~/.zprofile ~/.zshrc ~/.zlogin; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
if grep -l ".nix-profile" "$file"; then
|
if grep -l "^[^#].*.nix-profile" "$file"; then
|
||||||
failure <<EOF
|
failure <<EOF
|
||||||
I found a reference to a ".nix-profile" in $file.
|
I found a reference to a ".nix-profile" in $file.
|
||||||
This has a high chance of breaking a new nix installation. It was most
|
This has a high chance of breaking a new nix installation. It was most
|
||||||
|
|
Loading…
Reference in a new issue