From 643f53ff7fb877ba5c94c8582d7592b1f739c44b Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Sun, 6 Sep 2026 01:03:36 +0100 Subject: [PATCH] mkSymlinkActivationScript: fix check to not miss broken symlinks --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index bea873c..29529a8 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ mkSymlinkActivationScript = {target, source}: '' if [ -e ${source} ]; then - if [ -e ${target} ]; then + if [ -L ${source} ] || [ -e ${target} ]; then rm -rf ${target} fi ln -s ${source} ${target}