Skip to content

Instantly share code, notes, and snippets.

@madis
Created September 25, 2012 19:22
Show Gist options
  • Save madis/3783886 to your computer and use it in GitHub Desktop.
Save madis/3783886 to your computer and use it in GitHub Desktop.
Is RVM installed?
#!/bin/bash
echo "This script checks if you have all dependencies installed"
# Check for RVM
#RESULT= `type rvm | head -1`
RESULT="rvm is a function"
echo $RESULT
if [[ $RESULT = "rvm is a function" ]]; then
echo "RVM is OK"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment