Fix if block for GITHUB_TOKEN
@@ -10,6 +10,7 @@ if [[ ! -z $MARIONETTE ]]; then
export GITHUB_AUTH="anonymous"
if [[ ! -z $GITHUB_TOKEN ]]; then
export GITHUB_AUTH="token $GITHUB_TOKEN"
+ fi
export GECKODRIVER_DOWNLOAD=`curl -H "Authorization: $GITHUB_AUTH" -s 'https://api.github.com/repos/mozilla/geckodriver/releases/latest' | python -c "import sys, json; r = json.load(sys.stdin); print([a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url']);"`
curl -L -o geckodriver.tar.gz $GECKODRIVER_DOWNLOAD
gunzip -c geckodriver.tar.gz | tar xopf -
