Created
July 14, 2010 12:05
-
-
Save victorhg/475336 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# All grails versions are under /opt/ | |
# The directory /opt/grails is a symbolic link to some of the grails instalations | |
# GRAILS_HOME and PATH are configured to /opt/grails | |
# | |
# Then, the magic is only replacing the grails link dir to the one you want: | |
# | |
# $> use-grails 1.3.3 | |
GRAILS_ENV=$1 | |
rm -f /opt/grails | |
ln -s /opt/grails-$GRAILS_ENV /opt/grails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment