Skip to content

Commit 48cffaf

Browse files
authored
Update update-components.sh
1 parent b69a857 commit 48cffaf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/update-components.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ source ./tools/config.sh
55
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
66
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
77
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
8+
TINYUSB_REPO_DIR="$AR_COMPS/arduino_tinyusb/tinyusb"
89

910
#
1011
# CLONE/UPDATE ESP32-CAMERA
@@ -43,10 +44,10 @@ cp "$AR_COMPS/esp32-camera/driver/private_include/cam_hal.h" "$AR_COMPS/esp32-ca
4344
# CLONE/UPDATE TINYUSB
4445
#
4546
echo "Updating TinyUSB..."
46-
if [ ! -d "$AR_COMPS/arduino_tinyusb/tinyusb" ]; then
47-
git clone $TINYUSB_REPO_URL "$AR_COMPS/arduino_tinyusb/tinyusb"
47+
if [ ! -d "$TINYUSB_REPO_DIR" ]; then
48+
git clone "$TINYUSB_REPO_URL" "$TINYUSB_REPO_DIR"
4849
else
49-
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" fetch && \
50-
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" pull --ff-only
50+
git -C "$TINYUSB_REPO_DIR" fetch && \
51+
git -C "$TINYUSB_REPO_DIR" pull --ff-only
5152
fi
5253
if [ $? -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)