From d8657b49753f71751fb884418a2ef6207194871a Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 10 May 2018 10:41:59 +0200 Subject: [PATCH] Add symlinks to the last successful and last failed build --- run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.sh b/run.sh index 4221e9b..ef009fa 100755 --- a/run.sh +++ b/run.sh @@ -26,10 +26,14 @@ if test "$(ls -A /tex)"; then echo "$ECHOPREFIX Created the PDF!" echo "$NULLPREFIX Here are the results:" 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 + rm ./last-failed 2>/dev/null + ln -sf $BUILD ./last-failed fi cd ..