Skip to content

Instantly share code, notes, and snippets.

@EnriqueCanals
Last active May 18, 2020 19:40
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 EnriqueCanals/33374e8f28fc71673bef632c0d61d666 to your computer and use it in GitHub Desktop.
Save EnriqueCanals/33374e8f28fc71673bef632c0d61d666 to your computer and use it in GitHub Desktop.
TAR=phantomjs-2.1.1-linux-x86_64.tar.bz2
URL=https://bitbucket.org/ariya/phantomjs/downloads/$TAR
if ! [ -e $SEMAPHORE_CACHE_DIR/$TAR ]; then ( cd $SEMAPHORE_CACHE_DIR; wget $URL ); fi
sudo tar -xjf $SEMAPHORE_CACHE_DIR/$TAR -C /usr/local/
sudo ln -fs /usr/local/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
echo "PhantomJS version: $(phantomjs --version)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment