Last active
May 2, 2019 19:42
-
-
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
This file contains hidden or 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 | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grails for the impatient?