Files
ESPEasy/patches/check_puya_patch
T

13 lines
344 B
Bash
Executable File

#!/bin/bash
PATCH=puya_core2_4_x.patch
for DIR in ~/.platformio/packages/framework-arduinoespressif8266/ ~/.platformio/packages/framework-arduinoespressif8266*/; do
#not applied yet? (in upstream or otherwise)
if ! grep "PUYA" $DIR/cores/esp8266/Esp.cpp >/dev/null; then
echo "Patching $DIR"
patch -p1 -d $DIR < $PATCH
fi
done