Skip to content

Commit

Permalink
chore: Make build.sh bail by default
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 committed Oct 26, 2018
1 parent 0b7ed8e commit 0f937ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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]"
exit 1
;;
-b|--bail)
bail="--bail"
--no-bail)
bail="--no-bail"
;;
-f|--force)
export CDK_BUILD="--force"
Expand Down

0 comments on commit 0f937ba

Please sign in to comment.