We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6a46e7 commit ac03d2aCopy full SHA for ac03d2a
tools/update-components.sh
@@ -13,6 +13,10 @@ TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
13
# CLONE/UPDATE ARDUINO
14
#
15
16
+if [ ! -d "$AR_COMPS/arduino" ]; then
17
+ git clone $AR_REPO_URL "$AR_COMPS/arduino"
18
+fi
19
+
20
if [ -z $AR_BRANCH ]; then
21
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
22
if [ "$has_ar_branch" == "1" ]; then
@@ -25,11 +29,8 @@ if [ -z $AR_BRANCH ]; then
25
29
fi
26
30
27
31
28
-if [ ! -d "$AR_COMPS/arduino" ]; then
- git clone $AR_REPO_URL "$AR_COMPS/arduino"
- if [ "$AR_BRANCH" ]; then
- git -C "$AR_COMPS/arduino" checkout "$AR_BRANCH"
32
- fi
+if [ "$AR_BRANCH" ]; then
33
+ git -C "$AR_COMPS/arduino" checkout "$AR_BRANCH"
34
35
if [ $? -ne 0 ]; then exit 1; fi
36
0 commit comments