Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Bash script that informs you when a Grails version is available on GVM
#!/bin/bash
# Usage:
# ./gvm-check.sh grails_version
[[ -s "$HOME/.gvm/bin/gvm-init.sh" ]] && source "$HOME/.gvm/bin/gvm-init.sh"
CHECK=""
GRAILS_VERSION=$1
while [ true ]; do
CHECK=`gvm list grails | grep "$GRAILS_VERSION"`
if [ "$CHECK" != "" ]; then
echo "GRAILS $GRAILS_VERSION FOUND!"
# Uncomment on Mac OS X
# say "Grails $GRAILS_VERSION is ready"
exit 0
fi
# Check every 10 minutes
sleep 600
done
@dawogfather

This comment has been minimized.

Copy link

@dawogfather dawogfather commented Jun 4, 2014

grails for the impatient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.