Skip to content

Instantly share code, notes, and snippets.

@pcomans
Created May 27, 2011 15:11
Show Gist options
  • Save pcomans/995449 to your computer and use it in GitHub Desktop.
Save pcomans/995449 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
echo $*
RUBY_VERSION=/usr/bin/env ruby -v
echo $RUBY_VERSION
if [[ $RUBY_VERSION == "jruby*" ]];
then
echo "JRUBY\!"
else
echo "Probably MRI"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment