mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Merge pull request #1078 from bigchaindb/better-error-handling-in-awsdeploy.sh
Better error handling in awsdeploy.sh
This commit is contained in:
commit
616e6ce263
@ -1,8 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The set -e option instructs bash to immediately exit
|
||||
# if any command has a non-zero exit status
|
||||
set -e
|
||||
set -euo pipefail
|
||||
# -e Abort at the first failed line (i.e. if exit status is not 0)
|
||||
# -u Abort when undefined variable is used
|
||||
# -o pipefail (Bash-only) Piped commands return the status
|
||||
# of the last failed command, rather than the status of the last command
|
||||
|
||||
# Check for the first command-line argument
|
||||
# (the name of the AWS deployment config file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user