From bc6570dbaa5ade3258f0618897c54f6232b958ff Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Thu, 28 Apr 2011 03:28:11 +0200
Subject: [PATCH] Improved logging method in update.sh

---
 update.sh | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/update.sh b/update.sh
index f922f17..5d21b2e 100644
--- a/update.sh
+++ b/update.sh
@@ -16,11 +16,11 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-[ -f update.log ] && mv update.log update.log.bak
+savelog logs/update.log
+exec &> logs/update.log
 
-DOALL() {
 date
-echo -n Updating...
+echo Updating...
 reprepro  -v -b . update
 if reprepro  -v -b . update
 then
@@ -36,9 +36,7 @@ sh purge.sh jaunty
 sh purge.sh karmic
 sh purge.sh lucid
 sh purge.sh maverick
-echo listing...
+echo Listing...
 find pool/ > files
 echo DONE
-}
 
-COLUMNS=500 DOALL 2>&1 | COLUMNS=500 tee update.log
-- 
GitLab