Skip to content

Instantly share code, notes, and snippets.

@victorhg
Created July 14, 2010 12:05
Show Gist options
  • Save victorhg/475336 to your computer and use it in GitHub Desktop.
Save victorhg/475336 to your computer and use it in GitHub Desktop.
#!/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