Skip to content

Commit

Permalink
nix-profile.sh.in: fix envvar condition
Browse files Browse the repository at this point in the history
  • Loading branch information
noamraph committed Sep 19, 2024
1 parent 3df1658 commit 97fffd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/nix-profile.sh.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This file is tested by tests/installer/default.nix.
if [ -n "$HOME" ] && [ -n "$USER" ]; then
if [ -n "${HOME-}" ] && [ -n "${USER-}" ]; then

# Set up the per-user profile.

if [ -n "$NIX_STATE_HOME" ]; then
if [ -n "${NIX_STATE_HOME-}" ]; then
NIX_LINK="$NIX_STATE_HOME/profile"
else
NIX_LINK="$HOME/.nix-profile"
Expand Down

0 comments on commit 97fffd8

Please sign in to comment.