Skip to content

Instantly share code, notes, and snippets.

@oleander
Created November 13, 2012 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleander/8eca8688f2caef15c595 to your computer and use it in GitHub Desktop.
Save oleander/8eca8688f2caef15c595 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [[ -s "/home/webmaster/.rvm/environments/ruby-1.9.2-p320@webmaster" ]]
then
source "/home/webmaster/.rvm/environments/ruby-1.9.2-p320@webmaster"
exec bundle "$@"
else
echo "ERROR: Missing RVM environment file: '/home/webmaster/.rvm/environments/ruby-1.9.2-p320@webmaster'" >&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment