diff options
author | Steven Shaw <steven@steshaw.org> | 2019-10-19T03·25+1000 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-04T13·09+0100 |
commit | e1fb586138f220ed1eba2e8a5c9c1d5f17847267 (patch) | |
tree | 4e9509e92b66939388e31de491b98cd3cdcf7d70 /scripts/install-nix-from-closure.sh | |
parent | 34bf1a8b5fce79b4e5e286f3bf005243e102fe37 (diff) |
Fix unset variable in installer
(cherry picked from commit f0ec4b4ce478a8d2760203e8192275b88c770e1c)
Diffstat (limited to 'scripts/install-nix-from-closure.sh')
-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 35926f3dac94..3f15818547ab 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 |