Prefix build dirs

This commit is contained in:
maride 2018-05-04 20:14:10 +02:00
parent bceaf9262d
commit f1117a1840

6
run.sh
View File

@ -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"