summaryrefslogtreecommitdiff
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
parent985728e30a1b05e43b322fe3410bf2663b54dbfc (diff)
Fixed forced upgrade and tail of log in case of error
-rwxr-xr-xbase-install.sh2
-rwxr-xr-xutils.sh2
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
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"