From 93707d455fff3c667aedd92b485276101f5e6eba Mon Sep 17 00:00:00 2001 From: Links2004 Date: Fri, 5 Jan 2024 17:28:16 +0100 Subject: [PATCH] fix build_sketch_cli result handling --- travis/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/travis/common.sh b/travis/common.sh index 84ed157..53df57c 100644 --- a/travis/common.sh +++ b/travis/common.sh @@ -34,6 +34,7 @@ function build_sketch_cli() local sketch=$1 local board=$2 arduino-cli --log --log-level info compile -b "$board" "$sketch" + result=$? if [ $result -ne 0 ]; then echo "Build failed ($sketch) build verbose..." arduino-cli --log --log-level debug compile -b "$board" "$sketch"