From 5a6ad3ce168e1cfbfe8c1be9d9d01bd585a24860 Mon Sep 17 00:00:00 2001 From: Romain Marcadier-Muller Date: Fri, 26 Oct 2018 11:46:21 +0200 Subject: [PATCH] chore: Make build.sh bail by default (#1018) Accept a --no-bail argument if you want to run the whole thing without bailing out early on a failure. --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 0022e61bb6f26..49b89d1c85ceb 100755 --- a/build.sh +++ b/build.sh @@ -1,15 +1,15 @@ #!/bin/bash set -euo pipefail -bail="--no-bail" +bail="--bail" while [[ "${1:-}" != "" ]]; do case $1 in -h|--help) - echo "Usage: build.sh [--bail|-b] [--force|-f]" + echo "Usage: build.sh [--no-bail] [--force|-f]" exit 1 ;; - -b|--bail) - bail="--bail" + --no-bail) + bail="--no-bail" ;; -f|--force) export CDK_BUILD="--force"