Skip to content

Instantly share code, notes, and snippets.

@tjl2
Created January 20, 2011 12:03
Show Gist options
  • Save tjl2/787797 to your computer and use it in GitHub Desktop.
Save tjl2/787797 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -f ./script/rails ]; then
echo "Looks like Rails 3.x..."
COMMAND='./script/rails runner'
elif [ -f ./script/runner ]; then
echo "Looks like Rails 2.x..."
COMMAND='./script/runner'
fi
echo $COMMAND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment