* Test whether the symlink, not its target, exists.

This commit is contained in:
Eelco Dolstra 2004-01-16 15:17:36 +00:00
parent b1c5f3c10d
commit f899e8ce4d

View file

@ -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"