Last active
August 29, 2015 14:15
-
-
Save philopon/d45eb98d5976c6531217 to your computer and use it in GitHub Desktop.
download-latest-purescript.sh
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
| #!/usr/bin/env bash | |
| LATEST='https://github.com/purescript/purescript/releases/latest' | |
| VERSION=`curl -is $LATEST | grep ^Location | sed 's/^.*\///' | tr -d "\r"` | |
| echo purescript $VERSION | |
| DOWNLOAD="https://github.com/purescript/purescript/releases/download/$VERSION" | |
| SHA_FILE="$DOWNLOAD/linux64.sha" | |
| TAR_FILE="$DOWNLOAD/linux64.tar.gz" | |
| curl -sOL $SHA_FILE | |
| curl -sOL $TAR_FILE | |
| sha1sum -c linux64.sha |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -s https://gist.githubusercontent.com/philopon/d45eb98d5976c6531217/raw/download-latest-purescript.sh | bash