Last active
August 29, 2015 14:10
-
-
Save rjz/1d4357f2ba7aca996a59 to your computer and use it in GitHub Desktop.
Linux installer for flow
This file contains 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/sh | |
# Linux x64 install for Facebook's flow JS type checker (flowtype.org). Flow | |
# will be installed to the local directory, replacing any previous versions | |
# placed here by this script. | |
ZIP=flow-linux64-latest.zip | |
URL=http://flowtype.org/downloads/$ZIP | |
BINDIR=flow | |
# Remove older installation artifacts | |
test -f "$ZIP" && rm "$ZIP" | |
test -d "$BINDIR" && rm -rf "$BINDIR" | |
echo 'Just a moment...' | |
curl -sO "$URL" \ | |
&& unzip -q "$ZIP" \ | |
&& echo "Flow is installed. Add it to your current path with: | |
$ export PATH=\$PATH:`pwd`/$BINDIR | |
" \ | |
&& exit 0; | |
echo 'Unable to install flow!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment