mkSymlinkActivationScript: fix check failing on broken symlinks
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
mkSymlinkActivationScript = {target, source, isDir ? false}: ''
|
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}
|
rm${if isDir then " -rf" else ""} ${target}
|
||||||
fi
|
fi
|
||||||
ln -s ${source} ${target}
|
ln -s ${source} ${target}
|
||||||
|
|||||||
Reference in New Issue
Block a user