summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-19 21:34:37 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-03-19 21:34:37 -0500
commit868a6fabf6b254c53b12309fa9719eb5120e6d3f (patch)
treed83c0507ed07bda507ebc452915f3347de82bec1 /pm
parenta4f4526748482fd8c08a132d4dcb4762fc111041 (diff)
Fixups in hook blacklisting and parameter removal.
Diffstat (limited to 'pm')
-rw-r--r--pm/pm-functions.in5
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."