From c95175035ea54d090e4a5384b4186e3eb66efc51 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 28 Mar 2019 13:25:56 -0700 Subject: [PATCH] libretro-buildbot-recipe.sh: Minor cleanup. --- libretro-buildbot-recipe.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index 64d08fb0..342cbbc1 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -745,14 +745,12 @@ buildbot_pull(){ else echo "cloning repo $URL..." cd $PARENTDIR - if [ ! -z "$BRANCH" -a "${NAME}" == "retroarch" ]; then + if [ "${BRANCH}" ] && [ "${NAME}" = "retroarch" ]; then git clone "$URL" "$DIR" cd $DIR git checkout "$BRANCH" - elif [ ! -z "$GIT_BRANCH" ]; then - git clone -b "$GIT_BRANCH" "$URL" "$DIR" --depth=1 else - git clone -b master "$URL" "$DIR" --depth=1 + git clone -b "${GIT_BRANCH:-master}" "$URL" "$DIR" --depth=1 fi cd $WORK if [ "${TYPE}" = "PROJECT" ]; then