From e59a02b0fc1dfbd6096dc6a73cb188c9dc3e5b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 23 Mar 2018 21:39:39 +0100 Subject: [PATCH] Make hack scripts fail more loudly --- hack/bootstrap_tfw_dev.sh | 2 +- hack/tfw_magic_start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/bootstrap_tfw_dev.sh b/hack/bootstrap_tfw_dev.sh index 393e9f8..9b3d9cf 100755 --- a/hack/bootstrap_tfw_dev.sh +++ b/hack/bootstrap_tfw_dev.sh @@ -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 diff --git a/hack/tfw_magic_start.sh b/hack/tfw_magic_start.sh index 3a262b5..dadf54c 100755 --- a/hack/tfw_magic_start.sh +++ b/hack/tfw_magic_start.sh @@ -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))"