diff options
Diffstat (limited to 'Master/texmf-dist/scripts/texosquery/texosquery.sh')
-rwxr-xr-x | Master/texmf-dist/scripts/texosquery/texosquery.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texosquery/texosquery.sh b/Master/texmf-dist/scripts/texosquery/texosquery.sh index db9f8addfab..d230c4c1999 100755 --- a/Master/texmf-dist/scripts/texosquery/texosquery.sh +++ b/Master/texmf-dist/scripts/texosquery/texosquery.sh @@ -1,5 +1,11 @@ #!/bin/sh -jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery.jar` +kernel=`uname -s` +if test "${kernel#*CYGWIN}" != "$kernel" +then + jarpath=`cygpath -w $(kpsewhich --progname=texosquery --format=texmfscripts texosquery.jar)` +else + jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery.jar` +fi java -jar "$jarpath" "$@" |