From e6f43e067da79e5ceb2244c94c2f467c003c587e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sat, 24 Mar 2018 11:56:25 +0100 Subject: [PATCH] Update trap to show logs on error in bootstrap script --- hack/bootstrap_tfw_dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/bootstrap_tfw_dev.sh b/hack/bootstrap_tfw_dev.sh index ea84008..a98015a 100755 --- a/hack/bootstrap_tfw_dev.sh +++ b/hack/bootstrap_tfw_dev.sh @@ -6,7 +6,7 @@ BASEIMAGE=baseimage-${TFW_POSTFIX} BACKEND=test-${TFW_POSTFIX} FRONTEND=frontend-${TFW_POSTFIX} LOGFILE=/tmp/bootstrap_tfw.log -trap 'echo "Something went wrong. Read the log az $LOGFILE"' ERR +trap 'echo && echo "Error! Showing logs at $LOGFILE:" && cat $LOGFILE' ERR : > $LOGFILE echo -n "Cloning TFW repositories... "