Prevent nix-daemon.sh from leaking variable into user environment

The script at `/nix/store/...-nix-2.21.0/etc/profile.d/nix-daemon.sh`  was leaving behind a variable, which was visible in the user's shell environment, but not used outside the script.
This commit is contained in:
Andrew Davis 2024-04-06 10:26:29 -04:00 committed by GitHub
parent 2dc06b3969
commit a2a633d332
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,4 +69,4 @@ else
fi
export PATH="$NIX_LINK/bin:@localstatedir@/nix/profiles/default/bin:$PATH"
unset NIX_LINK
unset NIX_LINK NIX_LINK_NEW