diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-20 16:43:07 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-20 16:43:07 -0500 |
commit | 73ab1734f6d353ad4ee2d2f671e3944810fb88e7 (patch) | |
tree | 479e250b977afa9556a1e53d993f94d341e14449 /pm | |
parent | f75ffa2e8c5391b50177375f0b46653dbd38cc7f (diff) |
Added easy support to drop all parameters.
Just set DROP_PARAMETERS to "*"
Diffstat (limited to 'pm')
-rw-r--r-- | pm/pm-functions.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in index a3050da..dafde52 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -86,7 +86,8 @@ remove_parameters() { for p in "$@"; do y="" for x in $PM_CMDLINE; do - [ "$x" = "$p" ] && { + # * removes all parameters. + [ "$x" = "$p" -o "$p" = "*" ] && { log "Removing parameter $x." continue } |