github.com/leowmjw/otto@v0.2.1-0.20160126165905-6400716cf085/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