Skip to content

Instantly share code, notes, and snippets.

@rjz
Last active August 29, 2015 14:10
Show Gist options
  • Save rjz/1d4357f2ba7aca996a59 to your computer and use it in GitHub Desktop.
Save rjz/1d4357f2ba7aca996a59 to your computer and use it in GitHub Desktop.
Linux installer for flow
#!/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