fix: die() prints only the message, not the exit code
This commit is contained in:
parent
aa4185f9ed
commit
c19bb7d99a
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ set -euo pipefail
|
||||||
|
|
||||||
log() { printf 'deployor-bootstrap: %s\n' "$*"; }
|
log() { printf 'deployor-bootstrap: %s\n' "$*"; }
|
||||||
warn() { printf 'deployor-bootstrap: WARNING: %s\n' "$*" >&2; }
|
warn() { printf 'deployor-bootstrap: WARNING: %s\n' "$*" >&2; }
|
||||||
die() { printf 'deployor-bootstrap: ERROR: %s\n' "$*" >&2; exit "${2:-1}"; }
|
die() { printf 'deployor-bootstrap: ERROR: %s\n' "$1" >&2; exit "${2:-1}"; }
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue