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) (mkIf (!p) no)
]; ];
mkSymlinkActivationScript = {target, source, isDir ? false}: '' mkSymlinkActivationScript = {target, source}: ''
if [ -e ${target} ]; then if [ -e ${target} ]; then
rm${if isDir then " -rf" else ""} ${target} rm -rf ${target}
fi fi
ln -s ${source} ${target} ln -s ${source} ${target}
''; '';