summaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-05-03 15:37:51 +0200
committerAndreas Maunz <andreas@maunz.de>2011-05-03 15:37:51 +0200
commitf6085064817740351aad5cd37aa1aa7c19be4361 (patch)
treee9081278a4f2d184dffa35f1e6545eea6e01e705 /utils.sh
parent985728e30a1b05e43b322fe3410bf2663b54dbfc (diff)
Fixed forced upgrade and tail of log in case of error
Diffstat (limited to 'utils.sh')
-rwxr-xr-xutils.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.sh b/utils.sh
index 1bead39..880028c 100755
--- a/utils.sh
+++ b/utils.sh
@@ -18,6 +18,8 @@ run_cmd ()
printf "%30s" "'$title'"
if ! eval $cmd >>$LOG 2>&1 ; then
printf "%50s\n" "FAIL"
+ echo "Last 10 lines of log:"
+ tail -10 "$LOG"
exit 1
fi
printf "%50s\n" "DONE"