projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dffca81
)
Fix infinite loop when used incorrectly.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Wed, 23 Feb 2011 20:27:45 +0000 (20:27 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Wed, 23 Feb 2011 20:27:45 +0000 (20:27 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2936
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
scripts/vsomething
patch
|
blob
|
history
diff --git
a/scripts/vsomething
b/scripts/vsomething
index
c65c3ee
..
a87c1b7
100755
(executable)
--- a/
scripts/vsomething
+++ b/
scripts/vsomething
@@
-87,7
+87,7
@@
test "$1" != "--" || \
if getAllVserversByArg tmp "$@"; then
vservers=( "${vservers[@]}" "${tmp[@]}" )
- while test "$1" != "--"; do
+ while test "$#" -ge 1 -a "$1" != "--"; do
shift
done
shift