libretro-buildbot-recipe.sh: Exit early if no recipe target is passed to the script.

This commit is contained in:
orbea 2017-11-12 16:41:41 -08:00
parent 249b70e5f7
commit 04320f9d84

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