Make hack scripts fail more loudly
This commit is contained in:
parent
f9e7829b42
commit
e59a02b0fc
|
@ -1,4 +1,4 @@
|
|||
set -e
|
||||
set -eo pipefail
|
||||
|
||||
LOGFILE="/tmp/bootstrap_tfw.log"
|
||||
trap 'echo "Something went wrong. Read the log az $LOGFILE"' ERR
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
set -eo pipefail
|
||||
|
||||
[ "$(uname)" == "Darwin" ] && readlink_cmd="greadlink" || readlink_cmd="readlink"
|
||||
SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
|
||||
|
|
Loading…
Reference in New Issue