nixpkgs/pkgs/tools/typesetting/tex/texlive/texlinks.patch
2016-09-04 14:53:30 +02:00

16 lines
546 B
Diff

Don't overwrite already existing files!
diff --git a/texmf-dist/scripts/texlive/texlinks.sh b/texmf-dist/scripts/texlive/texlinks.sh
index 91540ea..9b1d7ed 100755
--- a/texmf-dist/scripts/texlive/texlinks.sh
+++ b/texmf-dist/scripts/texlive/texlinks.sh
@@ -157,7 +157,7 @@ install_link()
verbose_echo "skipped ConTeXtish symlink $src -> $dest (special case)"
;;
*)
- test "x$src" != "x`(ls -ld $src | awk '{print $NF}') 2>/dev/null`" &&
+ test ! -f "$src" &&
rm -f "$src"
if test -f "$src"; then