Skip to content

Instantly share code, notes, and snippets.

@philopon
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save philopon/d45eb98d5976c6531217 to your computer and use it in GitHub Desktop.

Select an option

Save philopon/d45eb98d5976c6531217 to your computer and use it in GitHub Desktop.
download-latest-purescript.sh
#!/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
@philopon
Copy link
Author

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