Skip to content

Commit

Permalink
Fix unset variable in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
steshaw committed Oct 19, 2019
1 parent ab4dd1d commit f0ec4b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/install-nix-from-closure.sh
Expand Up @@ -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
Expand All @@ -157,7 +155,6 @@ if [ -z "$NIX_INSTALLER_NO_MODIFY_PROFILE" ]; then
break
fi
done

fi

if [ -z "$added" ]; then
Expand Down

0 comments on commit f0ec4b4

Please sign in to comment.