File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
13
13
# CLONE/UPDATE ARDUINO
14
14
#
15
15
16
+ if [ ! -d " $AR_COMPS /arduino" ]; then
17
+ git clone $AR_REPO_URL " $AR_COMPS /arduino"
18
+ fi
19
+
16
20
if [ -z $AR_BRANCH ]; then
17
21
has_ar_branch=` git_branch_exists " $AR_COMPS /arduino" " idf-$IDF_BRANCH " `
18
22
if [ " $has_ar_branch " == " 1" ]; then
@@ -25,11 +29,8 @@ if [ -z $AR_BRANCH ]; then
25
29
fi
26
30
fi
27
31
28
- if [ ! -d " $AR_COMPS /arduino" ]; then
29
- git clone $AR_REPO_URL " $AR_COMPS /arduino"
30
- if [ " $AR_BRANCH " ]; then
31
- git -C " $AR_COMPS /arduino" checkout " $AR_BRANCH "
32
- fi
32
+ if [ " $AR_BRANCH " ]; then
33
+ git -C " $AR_COMPS /arduino" checkout " $AR_BRANCH "
33
34
fi
34
35
if [ $? -ne 0 ]; then exit 1; fi
35
36
You can’t perform that action at this time.
0 commit comments