Skip to content

Instantly share code, notes, and snippets.

@grantmcconnaughey
Last active May 2, 2019 19:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save grantmcconnaughey/d37b733dfd70439e17f1 to your computer and use it in GitHub Desktop.
Save grantmcconnaughey/d37b733dfd70439e17f1 to your computer and use it in GitHub Desktop.
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
Copy link

grails for the impatient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment