Skip to content

Commit 70a06ef

Browse files
author
Matěj Sychra
committed
fixed Arduino build path (arduino/Arduino#2411) to absolute
1 parent 807fe51 commit 70a06ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ if [ ! -z $@ ]; then
112112
/opt/arduino/arduino "$@"
113113
else
114114
echo "Building from Docker for Arduino..."
115-
/opt/arduino/arduino --verbose --pref build.path="$BUILD_DIR" --pref build.f_cpu=$F_CPU --pref build.flash_size=$FLASH_SIZE --board $BOARD --verify ./*.ino
115+
BUILD_PATH=$(pwd)
116+
/opt/arduino/arduino --verify --verbose --pref build.path="$BUILD_DIR" --pref build.f_cpu=$F_CPU --pref build.flash_size=$FLASH_SIZE --board $BOARD $BUILD_PATH/*.ino
116117
RESULT=$?
117118
fi
118119

0 commit comments

Comments
 (0)