summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-21 19:07:01 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-21 19:07:01 +0200
commit1d8e795b0dd42bc9a3cc0ac5397b42f9c3e5769d (patch)
treec3123592e2afe48ab9f4659a8b75c93311c0a533
parent0cb0a446d41ecdde2f56b2493fb0fefc9ad94c22 (diff)
pkg: pkg_push: Sanitized if syntax
-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 {