--- pm-functions 2012-06-23 17:07:56.602880889 +0200 +++ pm-functions.fixed 2012-06-23 17:10:26.912066594 +0200 @@ -197,9 +197,10 @@ # rest of args passed to hook unchanged. log "Running hook $*:" hook_ok "$1" && "$@" + local ret_run_hook=$? log "" log -n "$*: " - hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit + hook_exit_status $ret_run_hook && LAST_HOOK="${1##*/}" || inhibit } if profiling; then