From f1117a18406d3fd1f02e1e2913750a9007062b49 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 4 May 2018 20:14:10 +0200 Subject: [PATCH] Prefix build dirs --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 4d031a9..4221e9b 100755 --- a/run.sh +++ b/run.sh @@ -13,7 +13,7 @@ if test "$(ls -A /tex)"; then fi # Build in build dir - BUILD=$(date | sha256sum | cut -f1 -d' ') + BUILD=build-$(date | sha256sum | cut -f1 -d' ') mkdir $BUILD cd $BUILD @@ -35,10 +35,10 @@ if test "$(ls -A /tex)"; then cd .. # Delete old symlink - rm ./current 2>/dev/null + rm ./current-build 2>/dev/null # Set 'current' symlink - ln -sf $BUILD ./current + ln -sf $BUILD ./current-build else # Directory is empty echo "$ECHOPREFIX Please mount your directory to /tex"