Skip to content

Commit

Permalink
[setup] Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Jul 31, 2023
1 parent d2f5d83 commit ec691da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

set -euo pipefail

stderr() {
echo "${@}" 1>&2
}

fail() {
echo "FAILURE: ${1}" >&2
stderr "${1}"
stderr ""
stderr "Exiting …"
exit "${2:-1}"
}

Expand Down

0 comments on commit ec691da

Please sign in to comment.