1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-12-05 01:41:32 +00:00

Make hack scripts fail more loudly

This commit is contained in:
Kristóf Tóth 2018-03-23 21:39:39 +01:00
parent f9e7829b42
commit e59a02b0fc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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))"