* Test whether the symlink, not its target, exists.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
if test -n "$HOME"; then
|
||||
NIX_LINK="$HOME/.nix-userenv"
|
||||
|
||||
if ! test -a "$NIX_LINK"; then
|
||||
if ! test -L "$NIX_LINK"; then
|
||||
echo "creating $NIX_LINK"
|
||||
_NIX_DEF_LINK=@localstatedir@/nix/links/current
|
||||
ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
|
||||
|
||||
Reference in New Issue
Block a user