diff --git a/circleci-provision-scripts/phantomjs.sh b/circleci-provision-scripts/phantomjs.sh index 42cebef..f96fb9f 100755 --- a/circleci-provision-scripts/phantomjs.sh +++ b/circleci-provision-scripts/phantomjs.sh @@ -3,5 +3,8 @@ function install_phantomjs() { echo '>>> Installing PhantomJS' - curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1 + local BIN=/usr/local/bin/phantomjs + + curl --output $BIN https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1 + chmod +x $BIN }