diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-21 12:33:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 12:33:01 +0200 |
commit | 37e45dac8c60caefc259a517e11f351e94f42d6d (patch) | |
tree | 105ebacac37cabb3277bab15df31e085bb71767e | |
parent | ab4dd1d78306c58cb9ee1fa5009ef18b67e26314 (diff) | |
parent | f0ec4b4ce478a8d2760203e8192275b88c770e1c (diff) |
Merge pull request #3158 from steshaw/master
Fix unset variable in installer
-rw-r--r-- | scripts/install-nix-from-closure.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh index 35926f3da..3f1581854 100644 --- a/scripts/install-nix-from-closure.sh +++ b/scripts/install-nix-from-closure.sh @@ -141,11 +141,9 @@ if [ -z "$_NIX_INSTALLER_TEST" ]; then fi added= +p=$HOME/.nix-profile/etc/profile.d/nix.sh if [ -z "$NIX_INSTALLER_NO_MODIFY_PROFILE" ]; then - # Make the shell source nix.sh during login. - p=$HOME/.nix-profile/etc/profile.d/nix.sh - for i in .bash_profile .bash_login .profile; do fn="$HOME/$i" if [ -w "$fn" ]; then @@ -157,7 +155,6 @@ if [ -z "$NIX_INSTALLER_NO_MODIFY_PROFILE" ]; then break fi done - fi if [ -z "$added" ]; then |