core/pkgs/by-name/te/texlive/texlinks.diff
2024-05-13 11:34:52 -04:00

10 lines
277 B
Diff

@@ -157,7 +157,7 @@
verbose_echo "skipped ConTeXtish symlink $src -> $dest (special case)"
;;
*)
- test ! -f "$src" &&
+ test "x$src" != "x`(ls -ld $src | awk '{print $NF}') 2>/dev/null`" &&
rm -f "$src"
if test -f "$src"; then