diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-21 19:07:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-21 19:07:01 +0200 |
commit | 1d8e795b0dd42bc9a3cc0ac5397b42f9c3e5769d (patch) | |
tree | c3123592e2afe48ab9f4659a8b75c93311c0a533 | |
parent | 0cb0a446d41ecdde2f56b2493fb0fefc9ad94c22 (diff) |
pkg: pkg_push: Sanitized if syntax
-rwxr-xr-x | bin/pkg | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 { |