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"