Allow firefox binary to be cached

This commit is contained in:
Bruno Barbieri 2018-07-06 15:51:35 -04:00 committed by GitHub
parent 5b58c2acb4
commit 0af1702a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 4 deletions

View File

@ -1,6 +1,13 @@
#!/usr/bin/env bash
FIREFOX_BINARY="firefox-58.0.tar.bz2"
echo "Checking if firefox was already downloaded"
if [ -e $FIREFOX_BINARY ]
then
echo "$FIREFOX_BINARY found. No need to download"
else
echo "Downloading firefox..."
wget "https://ftp.mozilla.org/pub/firefox/releases/58.0/linux-x86_64/en-US/$FIREFOX_BINARY" \
&& tar xjf "$FIREFOX_BINARY"
echo "firefox download complete"
fi
echo "Downloading firefox..."
wget https://ftp.mozilla.org/pub/firefox/releases/58.0/linux-x86_64/en-US/firefox-58.0.tar.bz2 \
&& tar xjf firefox-58.0.tar.bz2
echo "firefox download complete"