summaryrefslogtreecommitdiff
path: root/pm/pm-functions.in
diff options
context:
space:
mode:
Diffstat (limited to 'pm/pm-functions.in')
-rw-r--r--pm/pm-functions.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index 6ea3e75..f69d5fa 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -140,9 +140,9 @@ hook_exit_status(){
hook_ok()
{
local hook="${1##*/}"
- ## the actual name as passed to us.
+ # the actual name as passed to us.
[ -f "$STORAGEDIR/disable_hook:$hook" ] && return $DX
- ## name with zeros chopped off the filename
+ # name with leading digits chopped off the filename
[ -f "$STORAGEDIR/disable_hook:${hook#[0-9][0-9]}" ] && return $DX
[ -x "$1" ] || return $NX
return 0