summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-18 19:21:19 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-03-18 19:21:19 -0500
commitaaf4bb9cc962c4aaf5004d53ce86d5fc29ae2be9 (patch)
treefbfc1db1526f8f18dad5416a34d118f33c53272b /pm
parente49b18c42f3c501e3d352df8b5356ba8cff1e6ab (diff)
Fix logic error in remove_parameter.
Diffstat (limited to 'pm')
-rw-r--r--pm/pm-functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index f4686ee..b9cae79 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -69,7 +69,7 @@ remove_parameter() {
for p in $PM_CMDLINE; do
[ "$1" = "$p" ] && continue
x="$x $p"
- shift # not a bug!
+ [ "$2" ] && shift
done
PM_CMDLINE="$x"
}