From 063d1ade222b642478afb87481128c8bc89285bb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 26 May 2008 23:03:44 +0200 Subject: bin/pkg: fix the update stuff... hopefully --- bin/pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pkg b/bin/pkg index c726e02..d9eabf1 100755 --- a/bin/pkg +++ b/bin/pkg @@ -92,9 +92,9 @@ pkg_remove () { pkg_update () { cd $PDIR/$1 - if (NEW=$($VCS_CMD $VCS_OPTIONS $VCS_INCOMING)) { - NEW=$(tail -n 1 <<< $NEW) - info "Updating package $1 to $NEW" + NEW=$($VCS_CMS $VCS_OPTIONS $VCS_INCOMING) + if ([ $? != 0 ]) { + info "Updating package $1 to $(echo $NEW | tail -n 1)" $VCS_CMD $VCS_OPTIONS $VCS_UPDATE $VCS_UPDATE_OPTIONS checklinks $CL_OPTIONS if ([ -f hooks/post-update ]) { -- cgit v1.2.3