Update trap to show logs on error in bootstrap script

This commit is contained in:
Kristóf Tóth 2018-03-24 11:56:25 +01:00
parent 368d660fe4
commit e6f43e067d
1 changed files with 1 additions and 1 deletions

View File

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