Skip to content

Instantly share code, notes, and snippets.

@tristanoneil
Last active March 14, 2016 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristanoneil/af7cb145598a5639f3d5 to your computer and use it in GitHub Desktop.
Save tristanoneil/af7cb145598a5639f3d5 to your computer and use it in GitHub Desktop.
if [ -d ~/cache/phantomjs-2.1.1-linux-x86_64 ]
then
echo "PhantomJS 2.1.1 already found in cache, skipping download"
else
wget -O ~/cache/phantomjs-2.1.1.tar.bz2 https://s3.amazonaws.com/maji-development/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xvfj ~/cache/phantomjs-2.1.1.tar.bz2 -C ~/cache/
fi
cp ~/cache/phantomjs-2.1.1-linux-x86_64/bin/phantomjs ~/.phantomjs/bin/phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment