diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-21 13:57:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-21 13:57:01 +0200 |
commit | 3b493544c57c64f50b1b2af251f2942c706a001a (patch) | |
tree | 78244c005e95925feb8ebd8ddd96457e3fb3c317 /bin | |
parent | e30566152034665fd1ae84ae65e6b426f1fac0af (diff) |
pkg_push: Actually respect hook-on-push option
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ct | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -868,9 +868,15 @@ function pkg_push { clear_line info "Pushing $1\n" - global_hook $1 pre-update + if (( HOOK_ON_PUSH == 1 )) { + global_hook $1 pre-update + } + vcs_push $1 - global_hook $1 post-update + + if (( HOOK_ON_PUSH == 1 )) { + global_hook $1 post-update + } fi } |