Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created March 15, 2016 13:14
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 anonymous/86a6af0efa55bb1fae41 to your computer and use it in GitHub Desktop.
Save anonymous/86a6af0efa55bb1fae41 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if
[[ -s "/home/webgen/.rvm/gems/ruby-2.2.1/environment" ]]
then
source "/home/webgen/.rvm/gems/ruby-2.2.1/environment"
exec ruby "$@"
else
echo "ERROR: Missing RVM environment file: '/home/webgen/.rvm/gems/ruby-2.2.1/environment'" >&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment