From 11089dbf45721f236c02e5739eb746473d15e791 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Wed, 15 Sep 2021 10:14:46 +0200 Subject: [PATCH] Exit verify-ios-env immediately on error If one of the called scripts fails, e.g. because some tooling is missing, it would still print the "Looks good" message, which is confusing. Now it just error-exits if one of the called scripts error-exits (which btw prints an error message and if that's the last thing printed its more noticable) --- libs/verify-ios-environment.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/verify-ios-environment.sh b/libs/verify-ios-environment.sh index e4b3f10e0..0b2805aa7 100755 --- a/libs/verify-ios-environment.sh +++ b/libs/verify-ios-environment.sh @@ -4,6 +4,8 @@ # # This file should be used via `./libs/verify-ios-environment.sh`. +set -e + if [[ ! -f "$(pwd)/libs/build-all.sh" ]]; then echo "ERROR: verify-ios-environment.sh should be run from the root directory of the repo" exit 1