Skip to content

Instantly share code, notes, and snippets.

@jandudulski
Last active August 29, 2016 10:44
Show Gist options
  • Save jandudulski/f6bb366a3518a3e2946a to your computer and use it in GitHub Desktop.
Save jandudulski/f6bb366a3518a3e2946a to your computer and use it in GitHub Desktop.
#!/bin/bash -e
if [ ! -f .phantomjs/2.1.1/x86_64-linux/bin/phantomjs ]; then
curl -k -L -o phantomjs.tar.bz2 http://ci.monterail.io/files/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -jxf phantomjs.tar.bz2
mkdir -p .phantomjs/2.1.1/x86_64-linux/bin
mv phantomjs-2.1.1-linux-x86_64/bin .phantomjs/2.1.1/x86_64-linux/
else
echo "Phantomjs 2.1.1 is already installed"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment