Skip to content

Instantly share code, notes, and snippets.

@finnjohnsen
Created September 12, 2011 08:09
Show Gist options
  • Save finnjohnsen/1210809 to your computer and use it in GitHub Desktop.
Save finnjohnsen/1210809 to your computer and use it in GitHub Desktop.
convenient script for changing grails version
#!/bin/bash
VERSION=$1
if [ $VERSION = "2" ]
then
VERSION="2.0.0.M1"
fi
rm /opt/grails-current
ln -sf /opt/grails-$VERSION /opt/grails-current
# You need to put the following three lines in ~/.bashrc:
# export GRAILS_HOME=/opt/grails-current
# export PATH=$PATH:$GRAILS_HOME/bin:$HOME/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment