From dbd2bc6725a2c4f7c5bbb1494d58edc0ff93190a Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 4 May 2018 20:05:17 +0200 Subject: [PATCH] Add symlink 'current' to current build dir --- run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run.sh b/run.sh index caf93e0..4d031a9 100755 --- a/run.sh +++ b/run.sh @@ -31,6 +31,14 @@ if test "$(ls -A /tex)"; then echo "$NULLPREFIX Have a look at the logs:" ls ../$BUILD/*.log fi + + cd .. + + # Delete old symlink + rm ./current 2>/dev/null + + # Set 'current' symlink + ln -sf $BUILD ./current else # Directory is empty echo "$ECHOPREFIX Please mount your directory to /tex"