Skip to content

Commit

Permalink
chore: Make build.sh bail by default (#1018)
Browse files Browse the repository at this point in the history
Accept a --no-bail argument if you want to run the whole thing without bailing out
early on a failure.
  • Loading branch information
RomainMuller authored Oct 26, 2018
1 parent bdf1719 commit 5a6ad3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 5a6ad3c

Please sign in to comment.