#!/bin/bash version=phantomjs-1.8.1-linux-i686 wget http://phantomjs.googlecode.com/files/$version.tar.bz2 tar xjf $version.tar.bz2 mv $version phantomjs