summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
}