From 18982a624707263369598f49f80f55c65357610b 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..b514a07 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ mkSymlinkActivationScript = {target, source}: '' if [ -e ${source} ]; then - if [ -e ${target} ]; then + if [ -L ${target} ] || [ -e ${target} ]; then rm -rf ${target} fi ln -s ${source} ${target}