aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-profile.sh.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-01-16 15:17:36 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-01-16 15:17:36 +0000
commitf899e8ce4df3e700ae5b47279c16edc0efb4aeed (patch)
tree5fddfa3f1aa61169e202c004182de727e02e71b5 /scripts/nix-profile.sh.in
parentb1c5f3c10dbcbbb9469ba7147bb26acf6a9aa733 (diff)
* Test whether the symlink, not its target, exists.
Diffstat (limited to 'scripts/nix-profile.sh.in')
-rw-r--r--scripts/nix-profile.sh.in2
1 files changed, 1 insertions, 1 deletions
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"