# 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