about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/nix/run-latex.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/typesetting/tex/nix/run-latex.sh')
-rw-r--r--pkgs/tools/typesetting/tex/nix/run-latex.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/typesetting/tex/nix/run-latex.sh b/pkgs/tools/typesetting/tex/nix/run-latex.sh
index 97079c476fbc..fa27520d11cd 100644
--- a/pkgs/tools/typesetting/tex/nix/run-latex.sh
+++ b/pkgs/tools/typesetting/tex/nix/run-latex.sh
@@ -16,11 +16,11 @@ for i in $extraFiles; do
     if test -d $i; then
         ln -s $i/* .
     else
-        ln -s $i $(baseHash $i)
+        ln -s $i $(stripHash $i; echo $strippedName)
     fi
 done
 
-rootName=$(baseHash "$rootFile")
+rootName=$(basename $(stripHash "$rootFile"; echo $strippedName))
 
 rootNameBase=$(echo "$rootName" | sed 's/\..*//')