Merge pull request #585 from orbea/tmpdir

libretro-buildbot-recipe.sh: Make sure $TMPDIR exists and is set.
This commit is contained in:
Twinaphex 2017-11-12 15:26:40 +01:00 committed by GitHub
commit 249b70e5f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,9 @@
# This will use an overridden value from the command-line if provided, otherwise just use the current date
LOGDATE=${LOGDATE:-`date +%Y-%m-%d`}
TMPDIR="${TMPDIR:-/tmp}"
mkdir -p -- "$TMPDIR/log/${BOT}/${LOGDATE}"
ORIGPATH=$PATH
WORK=$PWD