#!/bin/bash
cd /opt/
FILE=`curl https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/ |
grep 'firefox-.{2,6}.en-US.linux-x86_64.tar.bz2' -o -m 1 |
head -1`
wget -O /tmp/aurora.tar.bz2
https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/$FILE
mkdir -p /tmp/aurora
tar -C /tmp/aurora -xjf /tmp/aurora.tar.bz2
rm -r /opt/aurora
mv /tmp/aurora/firefox /opt/aurora