diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-19 21:34:37 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-19 21:34:37 -0500 |
commit | 868a6fabf6b254c53b12309fa9719eb5120e6d3f (patch) | |
tree | d83c0507ed07bda507ebc452915f3347de82bec1 /pm | |
parent | a4f4526748482fd8c08a132d4dcb4762fc111041 (diff) |
Fixups in hook blacklisting and parameter removal.
Diffstat (limited to 'pm')
-rw-r--r-- | pm/pm-functions.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in index 7461087..aebbd0c 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -76,14 +76,15 @@ load_hook_blacklist() [ "$HOOK_BLACKLIST" ] || return local hook for hook in $HOOK_BLACKLIST; do - disablehook "${entry##*/}" "${comment:-blacklist}" - log "Blacklisting ${entry##*/}." + disablehook "${hook}" "blacklisted by user" + log "Blacklisting ${hook}." done } remove_parameters() { local x y for p in "$@"; do + y="" for x in $PM_CMDLINE; do [ "$x" = "$p" ] && { log "Removing parameter $x." |