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"