github.com/bhameyie/otto@v0.2.1-0.20160406174117-16052efa52ec/helper/hashitools/data/vagrant-darwin/install.sh (about) 1 #!/bin/bash 2 set -e 3 4 oe() { $@ 2>&1 | logger -t otto > /dev/null; } 5 ol() { echo "[otto] $@"; } 6 7 ol "Attaching Vagrant disk image..." 8 oe hdiutil attach $1 9 10 ol "Starting Vagrant installer..." 11 sudo installer -pkg /Volumes/Vagrant/Vagrant.pkg -target "/" 12 13 ol "Vagrant installed. Cleaning up..." 14 oe hdiutil detach /Volumes/Vagrant/ 15 oe rm vagrant.dmg