mkSymlinkActivationScript: fix check to not miss broken symlinks
This commit is contained in:
1 file changed
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
mkSymlinkActivationScript = {target, source}: ''
|
mkSymlinkActivationScript = {target, source}: ''
|
||||||
if [ -e ${source} ]; then
|
if [ -e ${source} ]; then
|
||||||
if [ -e ${target} ]; then
|
if [ -L ${source} ] || [ -e ${target} ]; then
|
||||||
rm -rf ${target}
|
rm -rf ${target}
|
||||||
fi
|
fi
|
||||||
ln -s ${source} ${target}
|
ln -s ${source} ${target}
|
||||||
|
|||||||
Reference in new issue
Block a user