#!/bin/bash
THIS_DIR="$( dirname "${BASH_SOURCE[0]}")"
EXTERNAL_DIR=$(cd "${THIS_DIR}/.." && pwd)/external
mkdir -p $EXTERNAL_DIR

cd $EXTERNAL_DIR

if [[ -d "casperjs" ]]; then
    echo "[CasperJS] already downloaded into $EXTERNAL_DIR"
else
    echo "Installing CasperJS into $EXTERNAL_DIR"
    echo
    wget https://github.com/n1k0/casperjs/tarball/master -O - | tar -xz
    mv n1k0-casperjs-* casperjs
fi


#!/bin/bash
THIS_DIR="$( dirname "${BASH_SOURCE[0]}")"
EXTERNAL_DIR=$(cd "${THIS_DIR}/.." && pwd)/external
mkdir -p $EXTERNAL_DIR

cd $EXTERNAL_DIR

if [[ -d "casperjs" ]]; then
    echo "[CasperJS] already downloaded into $EXTERNAL_DIR"
else
    echo "Installing CasperJS into $EXTERNAL_DIR"
    echo
    wget https://github.com/casperjs/casperjs/tarball/master -O - | tar -xz
    mv casperjs-casperjs-* casperjs
fi


Fix casper install bug caused by remote repo rename
Fix casper install bug caused by remote repo rename
