mkSymlinkActivationScript: remove unnecessary isDir arg
This commit is contained in:
1 file changed
+2
-2
@@ -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}
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in new issue
Block a user