Permalink
Browse files

Script to find vmrun and start Micro Cloud Foundry.

Change-Id: I8764a0beb32020c1870b47f7b5c3bbe24bdee175
  • Loading branch information...
1 parent b388031 commit 89013a2fc6028d9107466731085ef3f1e13079f5 @mmb mmb committed Oct 2, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 micro/go.sh
View
@@ -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

0 comments on commit 89013a2

Please sign in to comment.