summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive-new/texlinks.patch
blob: 613fa819e12a9a8fbae51b0b4545401d308c25a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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