mkSymlinkActivationScript: remove unnecessary isDir arg

This commit is contained in:
greyweather committed 2026-08-30 23:40:03 +01:00
1 parent b6975c22a0
commit 3131ebbfcd
1 file changed
+2 -2
+2 -2
View File
@@ -11,9 +11,9 @@
(mkIf (!p) no)
];
mkSymlinkActivationScript = {target, source, isDir ? false}: ''
mkSymlinkActivationScript = {target, source}: ''
if [ -e ${target} ]; then
rm${if isDir then " -rf" else ""} ${target}
rm -rf ${target}
fi
ln -s ${source} ${target}
'';