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