diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-05-03 15:37:51 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-05-03 15:37:51 +0200 |
commit | f6085064817740351aad5cd37aa1aa7c19be4361 (patch) | |
tree | e9081278a4f2d184dffa35f1e6545eea6e01e705 | |
parent | 985728e30a1b05e43b322fe3410bf2663b54dbfc (diff) |
Fixed forced upgrade and tail of log in case of error
-rwxr-xr-x | base-install.sh | 2 | ||||
-rwxr-xr-x | utils.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/base-install.sh b/base-install.sh index fbf0689..0a13c68 100755 --- a/base-install.sh +++ b/base-install.sh @@ -46,7 +46,7 @@ if [ -n "$pack_arr" ]; then echo echo "Checking availablity:" sudo $APTITUDE update -y >/dev/null 2>&1 - sudo $APTITUDE upgrade -y >/dev/null 2>&1 +# sudo $APTITUDE upgrade -y >/dev/null 2>&1 fi for p in $pack_arr; do @@ -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" |