Created
November 28, 2017 15:47
-
-
Save Zoramite/09f2329572b4ca84df74eb9f04ee1c70 to your computer and use it in GitHub Desktop.
Grow Version Download
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
set -e | |
if [ -z "$1" ]; then | |
echo "usage: $0 <version>" | |
exit 1 | |
fi | |
GROW_VERSION=$1 | |
if [ ! -f $HOME/bin/gr/grow-$GROW_VERSION ]; then | |
cd $HOME/bin/gr | |
wget https://github.com/grow/grow/releases/download/$GROW_VERSION/Grow-SDK-Mac-$GROW_VERSION.zip | |
unzip Grow-SDK-Mac-$GROW_VERSION.zip | |
mv grow grow-$GROW_VERSION | |
fi | |
if [ -f $HOME/bin/grow ]; then | |
rm $HOME/bin/grow | |
fi | |
ln -s $HOME/bin/gr/grow-$GROW_VERSION $HOME/bin/grow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment