From 81471429305646a8971fb8cc13a0d96a8bd060b3 Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 10 May 2018 10:46:29 +0200 Subject: [PATCH] Fix relative path problem --- run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.sh b/run.sh index ef009fa..b060ac1 100755 --- a/run.sh +++ b/run.sh @@ -22,22 +22,22 @@ if test "$(ls -A /tex)"; then # Build the PDF texi2pdf ../$TARGET + cd .. + if [ "$?" -eq "0" ]; then echo "$ECHOPREFIX Created the PDF!" echo "$NULLPREFIX Here are the results:" - ls ../$BUILD/*.pdf + ls $BUILD/*.pdf rm ./last-successful 2>/dev/null ln -sf $BUILD ./last-successful else echo "$ECHOPREFIX Build failed." echo "$NULLPREFIX Have a look at the logs:" - ls ../$BUILD/*.log + ls $BUILD/*.log rm ./last-failed 2>/dev/null ln -sf $BUILD ./last-failed fi - cd .. - # Delete old symlink rm ./current-build 2>/dev/null