diff --git a/.github/scripts/install-platformio-esp32.sh b/.github/scripts/install-platformio-esp32.sh index 65dc0c40af6..a79a590ca4a 100755 --- a/.github/scripts/install-platformio-esp32.sh +++ b/.github/scripts/install-platformio-esp32.sh @@ -13,10 +13,10 @@ python -m platformio platform install https://github.com/platformio/platform-esp echo "Replacing the framework version ..." if [[ "$OSTYPE" == "darwin"* ]]; then - sed 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json" > "platform.json" - mv -f "platform.json" "$HOME/.platformio/platforms/espressif32/platform.json" + sed 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' $HOME/.platformio/platforms/espressif32*/platform.json > "platform.json" + mv -f "platform.json" $HOME/.platformio/platforms/espressif32*/platform.json else - sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json" + sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' $HOME/.platformio/platforms/espressif32*/platform.json fi if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then