From 3c3240157f18c7f1d4074e25279207da37cc62da Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 19 May 2008 21:01:58 +0200 Subject: bin/pkg: Be more silent --- bin/pkg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/pkg b/bin/pkg index 731c4a1..a88a691 100755 --- a/bin/pkg +++ b/bin/pkg @@ -3,6 +3,8 @@ PDIR="$HOME/packages" PKG_ROOT="ssh://derf.homelinux.org/packages" local info=$'\e[0;36m' local reset=$'\e[0m' +local HG_OPTIONS='--quiet' +local CL_OPTIONS='-q' echo_status () { echo "${info}$*${reset}" @@ -20,14 +22,14 @@ pkg_add () { fi cd $PDIR || return 255 echo_status 'Retrieving package...' - hg clone $PKG_ROOT/$1 || return 255 + hg $HG_OPTIONS clone $PKG_ROOT/$1 || return 255 if [ -f $1/hooks/post-add ]; then echo_status 'Executing post-add hook' . $1/hooks/post-add fi echo_status 'Checking symlinks...' cd $1 - checklinks + checklinks $CL_OPTIONS return 0 } @@ -49,8 +51,8 @@ pkg_update () { for i in *(/); { echo_status "Updating package $i..." cd $i - hg fetch - checklinks + hg $HG_OPTIONS fetch + checklinks $CL_OPTIONS if [ -f hooks/post-update ]; then echo_status 'Executing post-update hook' . hooks/post-update -- cgit v1.2.3