Skip to content

Commit 43416b0

Browse files
authored
feat(matter): use existing folder variables in update-components.sh
1 parent 30d2452 commit 43416b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/update-components.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ $? -ne 0 ]; then exit 1; fi
1818

1919
echo "Updating Matter v1.3 repository..."
2020
MATTER_REPO_URL="https://github.com/espressif/esp-matter.git"
21-
MATTER_REPO_DIR="$AR_COMPS/espressif__esp-matter"
21+
MATTER_REPO_DIR="$AR_COMPS/espressif__esp_matter"
2222
MATTER_REPO_BRANCH="release/v1.3"
2323
if [ ! -d "$MATTER_REPO_DIR" ]; then
2424
git clone --depth 1 -b "$MATTER_REPO_BRANCH" "$MATTER_REPO_URL" "$MATTER_REPO_DIR"
@@ -29,7 +29,7 @@ fi
2929
if [ $? -ne 0 ]; then exit 1; fi
3030
echo "Updating CHIP v1.3 repository..."
3131
CHIP_REPO_URL="https://github.com/espressif/connectedhomeip.git"
32-
CHIP_REPO_DIR="$AR_COMPS/espressif__esp-matter/connectedhomeip/connectedhomeip"
32+
CHIP_REPO_DIR="$MATTER_REPO_DIR/connectedhomeip/connectedhomeip"
3333
CHIP_REPO_BRANCH="v1.3-branch"
3434
if [ ! -d "$CHIP_REPO_DIR" ]; then
3535
git clone --depth 1 -b "$CHIP_REPO_BRANCH" "$CHIP_REPO_URL" "$CHIP_REPO_DIR"
@@ -40,7 +40,7 @@ else
4040
fi
4141
if [ $? -ne 0 ]; then exit 1; fi
4242
echo "Patching CHIP v1.3 repository..."
43-
CHIP_BAD_FILE="$AR_COMPS/espressif__esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32/bluedroid/ChipDeviceScanner.cpp"
43+
CHIP_BAD_FILE="$CHIP_REPO_DIR/src/platform/ESP32/bluedroid/ChipDeviceScanner.cpp"
4444
CHIP_PATCH="$AR_PATCHES/matter_chip_ChipDeviceScanner.diff"
4545
if [ ! -e "$CHIP_BAD_FILE" ]; then
4646
patch $CHIP_BAD_FILE $CHIP_PATCH

0 commit comments

Comments
 (0)