Skip to content

Commit 319bc09

Browse files
committed
Update update-components.sh
1 parent d73d00b commit 319bc09

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/update-components.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ source ./tools/config.sh
55
#
66
# CLONE/UPDATE ARDUINO
77
#
8+
if [ ! -d "$AR_COMPS/arduino" ]; then
9+
git clone $AR_REPO_URL "$AR_COMPS/arduino"
10+
fi
811
if [ -z $ARDUINO_BRANCH ]; then
912
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
1013
if [ "$has_ar_branch" == "1" ]; then
@@ -19,13 +22,10 @@ if [ -z $ARDUINO_BRANCH ]; then
1922
fi
2023
fi
2124

22-
if [ ! -d "$AR_COMPS/arduino" ]; then
23-
git clone $AR_REPO_URL "$AR_COMPS/arduino" -b $ARDUINO_BRANCH
24-
else
25-
git -C "$AR_COMPS/arduino" checkout $ARDUINO_BRANCH && \
26-
git -C "$AR_COMPS/arduino" fetch origin && \
27-
git -C "$AR_COMPS/arduino" pull origin $ARDUINO_BRANCH
28-
fi
25+
git -C "$AR_COMPS/arduino" checkout $ARDUINO_BRANCH && \
26+
git -C "$AR_COMPS/arduino" fetch origin && \
27+
git -C "$AR_COMPS/arduino" pull origin $ARDUINO_BRANCH
28+
2929
if [ $? -ne 0 ]; then exit 1; fi
3030
git -C "$AR_COMPS/arduino" submodule update --init --recursive
3131

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy