From f899e8ce4df3e700ae5b47279c16edc0efb4aeed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 16 Jan 2004 15:17:36 +0000 Subject: [PATCH] * Test whether the symlink, not its target, exists. --- scripts/nix-profile.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in index 064a6a347..55cff3e62 100644 --- a/scripts/nix-profile.sh.in +++ b/scripts/nix-profile.sh.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"