We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89fe403 commit 1a959baCopy full SHA for 1a959ba
tools/update-components.sh
@@ -5,10 +5,18 @@ source ./tools/config.sh
5
#
6
# CLONE/UPDATE ARDUINO
7
8
-ARDUINO_BRANCH="release/v1.0"
9
-ARDUINO_HAS_BRANCH=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
10
-if [ "$ARDUINO_HAS_BRANCH" == "1" ]; then
11
- ARDUINO_BRANCH="idf-$IDF_BRANCH"
+if [ -z $ARDUINO_BRANCH ]; then
+ has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
+ if [ "$has_ar_branch" == "1" ]; then
+ ARDUINO_BRANCH="idf-$IDF_BRANCH"
12
+ else
13
+ has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "$AR_PR_TARGET_BRANCH"`
14
15
+ ARDUINO_BRANCH="$AR_PR_TARGET_BRANCH"
16
17
+ ARDUINO_BRANCH="master"
18
+ fi
19
20
fi
21
22
if [ ! -d "$AR_COMPS/arduino" ]; then
0 commit comments