Skip to content

Commit 42b4a99

Browse files
committed
Update install-platformio-esp32.sh
1 parent 383b999 commit 42b4a99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/install-platformio-esp32.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ echo "Installing Platform ESP32 ..."
1313
python -m platformio platform install $PLATFORMIO_ESP32_URL > /dev/null 2>&1
1414

1515
echo "Replacing the framework version ..."
16-
python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/espressif32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoespressif32']['version'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
16+
python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/espressif32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoespressif32']['version'] = '*'; del data['packages']['framework-arduinoespressif32']['owner']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
1717

1818
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
1919
echo "Linking Core..."
2020
ln -s $GITHUB_WORKSPACE "$PLATFORMIO_ESP32_PATH"
2121
else
2222
echo "Cloning Core Repository ..."
23-
git clone https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
23+
git clone --recursive https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1
2424
fi
2525

2626
echo "PlatformIO for ESP32 has been installed"

0 commit comments

Comments
 (0)