Merge pull request #587 from orbea/exit

libretro-buildbot-recipe.sh: Exit early if there is no recipe target
This commit is contained in:
Twinaphex 2017-11-13 04:36:26 +01:00 committed by GitHub
commit 9c2c9cf926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@
LOGDATE=${LOGDATE:-`date +%Y-%m-%d`}
TMPDIR="${TMPDIR:-/tmp}"
if [ -z "${1}" ]; then
echo 'No recipe target, exiting.' >&2
exit 1
fi
mkdir -p -- "$TMPDIR/log/${BOT}/${LOGDATE}"
ORIGPATH=$PATH