diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-18 19:25:39 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-18 19:25:39 -0500 |
commit | ea374c82c37f881398cfa0eea2c7518286e1ae42 (patch) | |
tree | ec16ef09aef44c047ce5de53446fd93cdcfa165b /pm | |
parent | aaf4bb9cc962c4aaf5004d53ce86d5fc29ae2be9 (diff) |
Addind logging to add_parameter and remove_parameter
Diffstat (limited to 'pm')
-rw-r--r-- | pm/pm-functions.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in index b9cae79..7159ec9 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -67,7 +67,10 @@ load_hook_blacklist() remove_parameter() { local x="" for p in $PM_CMDLINE; do - [ "$1" = "$p" ] && continue + [ "$1" = "$p" ] && { + log "Removing parameter $1." + continue + } x="$x $p" [ "$2" ] && shift done @@ -75,6 +78,7 @@ remove_parameter() { } add_parameter() { + log "Adding parameters $@" PM_CMDLINE="$PM_CMDLINE $@" } |