diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2010-06-14 15:29:42 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2010-06-15 06:37:39 -0500 |
commit | b540f8f5c4fffad793d0a4938feb80d6f1f04c18 (patch) | |
tree | 962e71aa5c0d431684706cc68ccc401d16cbeed5 | |
parent | b9909dfe65f41eceaf771a7f0caa852fab2839e2 (diff) |
Change hook run printing to make it not look ugly.
Hooks can print things too.
-rw-r--r-- | pm/pm-functions.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in index 9a25b10..c82be30 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -195,8 +195,10 @@ hook_ok() _run_hook() { # $1 = hook to run # rest of args passed to hook unchanged. - log -n "$*:" + log "Running hook $*:" hook_ok "$1" && "$@" + log "" + log -n "$*: " hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit } |