Make sure that correct source arduino branch is cloned

This commit is contained in:
me-no-dev 2021-04-05 14:41:59 +03:00
parent cc1deacd9a
commit 1a838f3b0c

View file

@ -17,6 +17,11 @@ if [ -z $AR_BRANCH ]; then
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
if [ "$has_ar_branch" == "1" ]; then
export AR_BRANCH="idf-$IDF_BRANCH"
else
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "$AR_PR_TARGET_BRANCH"`
if [ "$has_ar_branch" == "1" ]; then
export AR_BRANCH="$AR_PR_TARGET_BRANCH"
fi
fi
fi