From c4f2c625c3ec1991cbb75a3f19e3b1ebae675689 Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Sat, 29 Aug 2026 15:49:25 +0100 Subject: [PATCH] mkSymlinkActivationScript: fix check failing on broken symlinks --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6d2c27e..ae7ba3a 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ ]; mkSymlinkActivationScript = {target, source, isDir ? false}: '' - if [ ${if isDir then "-d" else "-f"} ${target} ]; then + if [ -e ${target} ]; then rm${if isDir then " -rf" else ""} ${target} fi ln -s ${source} ${target}