projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use modern '--help' & '--version' output
[util-vserver.git]
/
util-vserver
/
scripts
/
rootshell
diff --git
a/util-vserver/scripts/rootshell
b/util-vserver/scripts/rootshell
index
0331278
..
d7203b1
100755
(executable)
--- a/
util-vserver/scripts/rootshell
+++ b/
util-vserver/scripts/rootshell
@@
-23,9
+23,6
@@
test -e "$UTIL_VSERVER_VARS" || {
}
. "$UTIL_VSERVER_VARS"
-OPTIONS=$@
-if [ "$OPTIONS" = "" ] ; then
- OPTIONS=--login
-fi
-exec $SBINDIR/chbind --silent --ip 0.0.0.0 /bin/bash $OPTIONS
+test "$*" || set -- --login
+exec $SBINDIR/chbind --silent --ip 0.0.0.0 /bin/bash "$@"