We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2035f5 commit 3a38dd3Copy full SHA for 3a38dd3
tools/update-components.sh
@@ -10,16 +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 6689a0142dfbb2cf2bb8f7f7e4f4ae8d019648a9
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
23
cd -
24
fi
25
if [ $? -ne 0 ]; then exit 1; fi
0 commit comments