aboutsummaryrefslogtreecommitdiff
path: root/scripts/try.sh
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-01-29 17:01:28 +0100
committerJavier <dev.git@javispedro.com>2022-01-29 23:07:56 +0100
commit54b754ce040d5549d5c58428d2b9c095601e98dc (patch)
tree1b35f1dca54088b967fe5587ec43b98cf72e3825 /scripts/try.sh
downloadvmusic-54b754ce040d5549d5c58428d2b9c095601e98dc.tar.gz
vmusic-54b754ce040d5549d5c58428d2b9c095601e98dc.zip
initial import
Diffstat (limited to 'scripts/try.sh')
-rwxr-xr-xscripts/try.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/try.sh b/scripts/try.sh
new file mode 100755
index 0000000..0f88c1d
--- /dev/null
+++ b/scripts/try.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -e
+
+vm="$1"
+
+if [[ -z "$vm" ]]; then
+ echo "Usage: $0 <VM>"
+ exit 1
+fi
+
+source scripts/logenv.sh
+
+exec /usr/lib/virtualbox/VirtualBoxVM --startvm "$vm"