#!/bin/sh

set -e
set -x

if [ -z  "$SELENIUM" ] ; then
    exit 0
fi

mkdir -p ~/browserstack
cd ~/browserstack
if [ ! -f BrowserStackLocal ] ; then
    wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip
    unzip BrowserStackLocal-linux-x64.zip
fi

