From 9c78382249a3ccd97e421d9b5bbe05096f30dd5c Mon Sep 17 00:00:00 2001 From: Antoine Beauchamp Date: Sun, 4 Aug 2024 11:33:51 -0400 Subject: [PATCH] Fixed fail build at step `Install Arduino cores`. --- ci/linux/install_arduino_cores.sh | 3 +++ ci/windows/install_arduino_cores.bat | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ci/linux/install_arduino_cores.sh b/ci/linux/install_arduino_cores.sh index 3c5c622..d919c13 100755 --- a/ci/linux/install_arduino_cores.sh +++ b/ci/linux/install_arduino_cores.sh @@ -1,6 +1,9 @@ # Any commands which fail will cause the shell script to exit immediately set -e +# Set current directory to local script +cd "$(dirname "$0")" + # Check Arduino CLI installation echo Expecting Arduino IDE installed in directory: $ARDUINO_CLI_INSTALL_DIR echo Searching for arduino cli executable... diff --git a/ci/windows/install_arduino_cores.bat b/ci/windows/install_arduino_cores.bat index 79fccba..e511418 100644 --- a/ci/windows/install_arduino_cores.bat +++ b/ci/windows/install_arduino_cores.bat @@ -1,4 +1,6 @@ @echo off + +:: Set current directory to local script cd /d %~dp0 :: Check Arduino CLI installation