Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 7 deletions.
  1. +3 −2 README.md
  2. +5 −5 grails
View
5 README.md
@@ -5,7 +5,7 @@ Prerequisites
/opt/grails-1.0.3
/opt/grails-1.1.1
- /opt/grails-1.3.2
+ /opt/grails-2.1.0.RC1
* `GRAILS_HOME` environment variable must be set and point to your "default" Grails installation
* cURL and unzip (If you want it to automatically pull missing versions)
@@ -29,5 +29,6 @@ Using the script is as transparent as possible:
* If you want to call a specific Grails version (i.e. when doing an upgrade) you can specify the version you want in the first parameter.
* If the version you specified does not exist locally, it will also attempt to download the version specified.
- Ex: $ grails 1.3.3 upgrade
+ Ex:
+ $ grails 2.0.1 upgrade
View
10 grails
@@ -1,6 +1,5 @@
-#!/bin/sh
-# Original Author: Deluan (http://github.com/deluan)
-# Updated By: mattdelliott (http://github.com/mattdelliott)
+#!/bin/bash
+# Original Version: http://github.com/deluan
# Check if GRAILS_HOME is set
if [ -z "$GRAILS_HOME" -o ! -d "$GRAILS_HOME" ]; then
@@ -18,6 +17,7 @@ dirname()
DEFAULT_VERSION=`basename $GRAILS_HOME | cut -f 2 -d "-"`
BASE_GRAILS_PATH=`dirname $GRAILS_HOME`
APP_PROP="application.properties"
+DOWNLOAD_BASE_URL="http://dist.springframework.org.s3.amazonaws.com/release/GRAILS"
# Try to get the version from the command line
TRY_VERSION=$1
@@ -40,9 +40,9 @@ export GRAILS_HOME=${BASE_GRAILS_PATH}/grails-${VERSION}
if [ ! -d ${GRAILS_HOME} ]; then
NEW_GRAILS_FILE=grails-${VERSION}
echo "grails ${VERSION} does not exist, attempting to download..."
- curl "http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/${NEW_GRAILS_FILE}.zip" -o ${NEW_GRAILS_FILE}.zip
+ curl "${DOWNLOAD_BASE_URL}/${NEW_GRAILS_FILE}.zip" -o ${NEW_GRAILS_FILE}.zip
unzip ./${NEW_GRAILS_FILE}.zip -d ${BASE_GRAILS_PATH}/
- rm -rf ${NEW_GRAILS_FILE}.zip
+ rm -r ${NEW_GRAILS_FILE}.zip
if [ -d ${GRAILS_HOME} ]; then
echo "Got grails version $VERSION successfully"
else

No commit comments for this range

Something went wrong with that request. Please try again.