summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg5
1 files changed, 2 insertions, 3 deletions
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 {