@@ -6,7 +6,7 @@ PLATFORMIO_ESP32_URL="https://github.com/platformio/platform-espressif32.git"
66TOOLCHAIN_VERSION=" 12.2.0+20230208"
77ESPTOOLPY_VERSION=" ~1.40501.0"
88ESPRESSIF_ORGANIZATION_NAME=" espressif"
9- LIBS_DIR=" tools/esp32-arduino-libs"
9+ LIBS_DIR=" $PLATFORMIO_ESP32_PATH / tools/esp32-arduino-libs"
1010
1111echo " Installing Python Wheel ..."
1212pip install wheel > /dev/null 2>&1
@@ -100,7 +100,7 @@ function count_sketches(){ # count_sketches <examples-path>
100100 requirements=$( jq -r ' .requires[]? // empty' $sketchdir /ci.json)
101101 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
102102 for requirement in $requirements ; do
103- found_line=$( grep -E " ^$requirement " $LIBS_DIR /esp32/sdkconfig)
103+ found_line=$( grep -E " ^$requirement " " $LIBS_DIR /esp32/sdkconfig" )
104104 if [[ " $found_line " == " " ]]; then
105105 continue 2
106106 fi
@@ -190,7 +190,7 @@ function build_pio_sketches(){ # build_pio_sketches <board> <options> <examples-
190190 requirements=$( jq -r ' .requires[]? // empty' $sketchdir /ci.json)
191191 if [[ " $requirements " != " null" ]] || [[ " $requirements " != " " ]]; then
192192 for requirement in $requirements ; do
193- found_line=$( grep -E " ^$requirement " $LIBS_DIR /esp32/sdkconfig)
193+ found_line=$( grep -E " ^$requirement " " $LIBS_DIR /esp32/sdkconfig" )
194194 if [[ " $found_line " == " " ]]; then
195195 continue 2
196196 fi
0 commit comments