Merge pull request #1018 from orbea/cleanup
libretro-buildbot-recipe.sh: Minor cleanup.
This commit is contained in:
commit
46cc13d38a
|
@ -745,14 +745,12 @@ buildbot_pull(){
|
||||||
else
|
else
|
||||||
echo "cloning repo $URL..."
|
echo "cloning repo $URL..."
|
||||||
cd $PARENTDIR
|
cd $PARENTDIR
|
||||||
if [ ! -z "$BRANCH" -a "${NAME}" == "retroarch" ]; then
|
if [ "${BRANCH}" ] && [ "${NAME}" = "retroarch" ]; then
|
||||||
git clone "$URL" "$DIR"
|
git clone "$URL" "$DIR"
|
||||||
cd $DIR
|
cd $DIR
|
||||||
git checkout "$BRANCH"
|
git checkout "$BRANCH"
|
||||||
elif [ ! -z "$GIT_BRANCH" ]; then
|
|
||||||
git clone -b "$GIT_BRANCH" "$URL" "$DIR" --depth=1
|
|
||||||
else
|
else
|
||||||
git clone -b master "$URL" "$DIR" --depth=1
|
git clone -b "${GIT_BRANCH:-master}" "$URL" "$DIR" --depth=1
|
||||||
fi
|
fi
|
||||||
cd $WORK
|
cd $WORK
|
||||||
if [ "${TYPE}" = "PROJECT" ]; then
|
if [ "${TYPE}" = "PROJECT" ]; then
|
||||||
|
|
Loading…
Reference in New Issue