aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-20 22:52:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-20 22:52:38 -0300
commit7863cc3a43fba633bc9baa29a45a1b46e578303f (patch)
tree40e6c31bf72a55f442a295f9350e04eb29d4d162
parentc7880e6581dd80346dcbe9fdb40965360b8fcba8 (diff)
downloadvbox-7863cc3a43fba633bc9baa29a45a1b46e578303f.tar.gz
vbox-7863cc3a43fba633bc9baa29a45a1b46e578303f.tar.bz2
Minor fix
-rwxr-xr-xvbox4
1 files changed, 2 insertions, 2 deletions
diff --git a/vbox b/vbox
index 1a82600..10a4af0 100755
--- a/vbox
+++ b/vbox
@@ -7,6 +7,7 @@
BASENAME="`basename $0`"
COMMAND="$1"
VM="$2"
+shift 2
# Usage
function usage {
@@ -53,8 +54,7 @@ if [ ! -z "$VM" ]; then
vbox_exec /sbin/halt
VBoxManage modifyhd --compact /var/cache/virtualbox/$box/$box.vdi
elif [ "$COMMAND" == "exec" ]; then
- shift 2
- vbox_run $*
+ vbox_exec $*
else
usage
fi