mkSymlinkActivationScript: fix check failing on broken symlinks

This commit is contained in:
2026-08-29 15:49:25 +01:00
parent 92cc765580
commit c4f2c625c3
+1 -1
View File
@@ -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}