diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-02-28 19:49:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 19:49:04 +0100 |
commit | db14e1d4aeb206e302f9cd9f02a10e9be0499e2c (patch) | |
tree | f2c1e0b4031febd90031c6cc2c8cba75871c37c4 /scripts/nix-profile-daemon.sh.in | |
parent | 4489def1b36aeaee2254159efc1c21c868cc8585 (diff) | |
parent | 24eaa086f00a1302d73c6b9b1d4043e7952d0012 (diff) |
Merge pull request #7920 from cole-h/fix-profile-XDG_STATE_HOME-unbound
nix-profile{,-daemon}.sh.in: Allow XDG_STATE_HOME to be unset
Diffstat (limited to 'scripts/nix-profile-daemon.sh.in')
-rw-r--r-- | scripts/nix-profile-daemon.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-profile-daemon.sh.in b/scripts/nix-profile-daemon.sh.in index 235536c65..80774f1f2 100644 --- a/scripts/nix-profile-daemon.sh.in +++ b/scripts/nix-profile-daemon.sh.in @@ -3,7 +3,7 @@ if [ -n "${__ETC_PROFILE_NIX_SOURCED:-}" ]; then return; fi __ETC_PROFILE_NIX_SOURCED=1 NIX_LINK=$HOME/.nix-profile -if [ -n "$XDG_STATE_HOME" ]; then +if [ -n "${XDG_STATE_HOME-}" ]; then NIX_LINK_NEW="$XDG_STATE_HOME/nix/profile" else NIX_LINK_NEW=$HOME/.local/state/nix/profile |