* 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
1 changed files with 1 additions and 1 deletions

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"