From e57d3a9a0d364976691e2b888e5023b76becf35e Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 20 Oct 2017 15:12:03 -0400 Subject: [PATCH] add missing if blocks --- libretro-buildbot-recipe.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 9538fd3b..a02ffda1 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -1316,7 +1316,9 @@ if [ "${PLATFORM}" == "osx" ] && [ "${RA}" == "YES" ]; then ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log buildbot_handle_message $RET $ENTRY_ID retroarch $jobid $ERROR - ENTRY_ID=`curl -X POST -d type="start" -d master_log="$MASTER_LOG_ID" -d platform="$jobid" -d name="retroarch" http://buildbot.fiveforty.net/build_entry/` + if [ -n "$LOGURL"]; then + ENTRY_ID=`curl -X POST -d type="start" -d master_log="$MASTER_LOG_ID" -d platform="$jobid" -d name="retroarch" http://buildbot.fiveforty.net/build_entry/` + fi xcodebuild -project RetroArch.xcodeproj -target "RetroArch Cg" -configuration Release | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_CG_${PLATFORM}.log @@ -1994,7 +1996,10 @@ if [ "${PLATFORM}" == "ps3" ] && [ "${RA}" == "YES" ]; then ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_dex.log buildbot_handle_message $RET $ENTRY_ID retroarch-dex $jobid $ERROR - ENTRY_ID=`curl -X POST -d type="start" -d master_log="$MASTER_LOG_ID" -d platform="$jobid" -d name="retroarch" http://buildbot.fiveforty.net/build_entry/` + + if [ -n "$LOGURL"]; then + ENTRY_ID=`curl -X POST -d type="start" -d master_log="$MASTER_LOG_ID" -d platform="$jobid" -d name="retroarch" http://buildbot.fiveforty.net/build_entry/` + fi time sh ./dist-cores.sh cex-ps3 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_cex.log @@ -2002,7 +2007,9 @@ if [ "${PLATFORM}" == "ps3" ] && [ "${RA}" == "YES" ]; then ERROR=$TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_cex.log buildbot_handle_message $RET $ENTRY_ID retroarch-cex $jobid $ERROR - ENTRY_ID=`curl -X POST -d type="start" -d master_log="$MASTER_LOG_ID" -d platform="$jobid" -d name="retroarch" http://buildbot.fiveforty.net/build_entry/` + if [ -n "$LOGURL"]; then + ENTRY_ID=`curl -X POST -d type="start" -d master_log="$MASTER_LOG_ID" -d platform="$jobid" -d name="retroarch" http://buildbot.fiveforty.net/build_entry/` + fi time sh ./dist-cores.sh ode-ps3 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_ode.log