Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Script to find vmrun and start Micro Cloud Foundry.

Change-Id: I8764a0beb32020c1870b47f7b5c3bbe24bdee175
  • Loading branch information...
commit 89013a2fc6028d9107466731085ef3f1e13079f5 1 parent b388031
@mmb mmb authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 micro/go.sh
View
21 micro/go.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Attempt to automatically start the Micro Cloud Foundry VM.
+
+vmx_file=micro.vmx
+
+tries=( \
+ `which vmrun` \
+ '/Applications/VMware Fusion.app/Contents/Library/vmrun' \
+)
+
+for try in "${tries[@]}"; do
+ if [[ -x "$try" ]]; then
+ "$try" start "$vmx_file"
+ exit
+ fi
+done
+
+echo 'Unable to find the vmrun command.'
+echo "Please open $vmx_file in VMware Workstation, Player or Fusion."
+exit 1
Please sign in to comment.
Something went wrong with that request. Please try again.