--- pm-utils-git/pm/pm-functions.in.ORIG 2010-12-07 23:06:42.558754000 -0430 +++ pm-utils-git/pm/pm-functions.in 2010-12-07 23:16:22.958754000 -0430 @@ -197,9 +197,10 @@ # rest of args passed to hook unchanged. log "Running hook $*:" hook_ok "$1" && "$@" + local status=$? log "" log -n "$*: " - hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit + hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit } if profiling; then