mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
nix-profile.sh.in: fix envvar condition
This commit is contained in:
parent
3df1658ba1
commit
97fffd8765
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue