We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1617e8 commit 893b867Copy full SHA for 893b867
tools/update-components.sh
@@ -10,15 +10,12 @@ TINYUSB_REPO_DIR="$AR_COMPS/arduino_tinyusb/tinyusb"
10
#
11
echo "Updating TinyUSB..."
12
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 -
+ git clone -b master --depth 1 "$TINYUSB_REPO_URL" "$TINYUSB_REPO_DIR"
17
else
18
cd $TINYUSB_REPO_DIR
19
git pull
20
# -ff is for cleaning untracked files as well as submodules
21
git clean -ffdx
22
+ cd -
23
fi
24
if [ $? -ne 0 ]; then exit 1; fi
0 commit comments