Prefix build dirs
This commit is contained in:
parent
bceaf9262d
commit
f1117a1840
6
run.sh
6
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"
|
||||
|
Loading…
Reference in New Issue
Block a user