Skip to content

Commit

Permalink
Fix broken rivet modulefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Sep 24, 2024
1 parent 499fdb2 commit 0b1128d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rivet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ prepend-path LD_LIBRARY_PATH \$RIVET_ROOT/lib
# Here trying to keep the env variable changes to their minimum, i.e touch only TEXINPUTS, LATEXINPUTS
# Manual prepend-path for TEX variables
# catch option to fix compatibility issues with multiple systems
if { [catch {exec which kpsewhich > /dev/null 2>&1 && kpsewhich -var-value TEXINPUTS} tempTEX] } {
set Old_TEXINPUTS [ exec sh -c "which kpsewhich > /dev/null 2>&1 && kpsewhich -var-value TEXINPUTS" ]
if { [catch {exec kpsewhich -var-value TEXINPUTS} brokenTEX] } {
set Old_TEXINPUTS \$brokenTEX
} else {
set Old_TEXINPUTS \$tempTEX
set Old_TEXINPUTS [ exec sh -c "kpsewhich -var-value TEXINPUTS" ]
}
set Extra_RivetTEXINPUTS \$RIVET_ROOT/share/Rivet/texmf/tex//
Expand Down

0 comments on commit 0b1128d

Please sign in to comment.