From 1d8e795b0dd42bc9a3cc0ac5397b42f9c3e5769d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 21 Apr 2009 19:07:01 +0200 Subject: pkg: pkg_push: Sanitized if syntax --- bin/pkg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index b0f8a23..cdea5d0 100755 --- a/bin/pkg +++ b/bin/pkg @@ -677,14 +677,13 @@ function pkg_push { check_installed $1 check_valid $1 cd $PDIR/$1 - list_incoming $1 - if [[ $? = 0 ]] { + if list_incoming $1; then clear_line info "Pushing $1\n" global_hook $1 pre-update vcs_push global_hook $1 post-update - } + fi } function pkg_remove { -- cgit v1.2.3