* Test whether the symlink, not its target, exists.
This commit is contained in:
parent
b1c5f3c10d
commit
f899e8ce4d
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue