Sandman: A bash script to find all known Vagrant VMs and halt them

Sign up for a GitHub account Sign in All Gists colby / sandman Created April 01, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav Sandman: A bash script to find all known Vagrant VMs and halt them View sandman sandman Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 #!/usr/bin/env sh # variables tmp=/tmp/sandman # functions errcho () { >&2 echo " $* " exit 1 } check () { which " $1 " || errcho " Missing dependency: $1 " } fkey () { grep -m1 " \" $1 \" " " $tmp " | cut -d ' " ' -...

Linked on 2015-04-01 01:19:52 | Similar Links