Skip to content

Commit 893b867

Browse files
authored
Update update-components.sh
1 parent c1617e8 commit 893b867

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/update-components.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ TINYUSB_REPO_DIR="$AR_COMPS/arduino_tinyusb/tinyusb"
1010
#
1111
echo "Updating TinyUSB..."
1212
if [ ! -d "$TINYUSB_REPO_DIR" ]; then
13-
git clone -b master "$TINYUSB_REPO_URL" "$TINYUSB_REPO_DIR"
14-
cd "$TINYUSB_REPO_DIR"
15-
git checkout a4fb8354e41b2604f66e7da22afa292b1a44f0a2
16-
cd -
13+
git clone -b master --depth 1 "$TINYUSB_REPO_URL" "$TINYUSB_REPO_DIR"
1714
else
1815
cd $TINYUSB_REPO_DIR
1916
git pull
2017
# -ff is for cleaning untracked files as well as submodules
2118
git clean -ffdx
22-
git checkout a4fb8354e41b2604f66e7da22afa292b1a44f0a2
19+
cd -
2320
fi
2421
if [ $? -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)