Skip to content

Instantly share code, notes, and snippets.

@edwardsmit
Last active August 29, 2015 14:15
Show Gist options
  • Save edwardsmit/27010238945fcc35e36f to your computer and use it in GitHub Desktop.
Save edwardsmit/27010238945fcc35e36f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
CURRENTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
hash foo 2>/dev/null || { echo >&2 "I require foo but it's not installed. Aborting."; exit 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment