From 35be094244035f1b19c8f63ef4849beda6b5d435 Mon Sep 17 00:00:00 2001 From: Lazar Obradovic Date: Thu, 5 Apr 2018 19:49:27 +0800 Subject: [PATCH] build process should exit with non0 value on failure. --- code/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/build.sh b/code/build.sh index 6e6dcaf0..caf2670a 100755 --- a/code/build.sh +++ b/code/build.sh @@ -64,7 +64,7 @@ echo "Building firmware images..." mkdir -p ../firmware/espurna-$version for environment in $environments; do echo "* espurna-$version-$environment.bin" - platformio run --silent --environment $environment || break + platformio run --silent --environment $environment || exit 1 mv .pioenvs/$environment/firmware.bin ../firmware/espurna-$version/espurna-$version-$environment.bin done echo "--------------------------------------------------------------"