Skip to content

Instantly share code, notes, and snippets.

@jakeasmith
Created May 9, 2013 20:28
Show Gist options
  • Save jakeasmith/5550330 to your computer and use it in GitHub Desktop.
Save jakeasmith/5550330 to your computer and use it in GitHub Desktop.
A quick little script for verifying Git, VirtualBox and Vagrant are installed.
#!/bin/bash
command -v git >/dev/null 2>&1 && echo "Git is installed" || { echo >&2 "I require git but it's not installed. Please download it from http://git-scm.com/"; exit 1; }
command -v VBoxManage >/dev/null 2>&1 && echo "VirtualBox is installed" || { echo >&2 "I require VBoxManage but it's not installed. Please download it from https://www.virtualbox.org/"; exit 1; }
command -v vagrant >/dev/null 2>&1 && echo "Vagrant is installed" || { echo >&2 "I require vagrant but it's not installed. Please download it from http://www.vagrantup.com/"; exit 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment