mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
* Test whether the symlink, not its target, exists.
This commit is contained in:
parent
b1c5f3c10d
commit
f899e8ce4d
1 changed files with 1 additions and 1 deletions
|
@ -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