mkSymlinkActivationScript: fix check to not miss broken symlinks

This commit is contained in:
greyweather committed 2026-09-06 01:03:36 +01:00
1 parent 2f7ae14883
commit 643f53ff7f
1 file changed
+1 -1
+1 -1
View File
@@ -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}