Update build-arduino.sh

This commit is contained in:
RobertoHE 2022-11-28 17:06:58 +01:00 committed by GitHub
parent 06dc8d04b3
commit 186cc21192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ dR=$(pwd)
# Compile all *.ino files for the Arduino Uno # Compile all *.ino files for the Arduino Uno
for f in **/*.ino ; do for f in **/*.ino ; do
echo "Project: $f" echo "Project: $f"
d=$(dirname $f) d=$(dirname $(readlink -f $f))
echo $d
cd $d cd $d
arduino-cli compile -b esp32:esp32:esp32 $f arduino-cli compile -b esp32:esp32:esp32 $f
cd $dR cd $dR