1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
metamask-extension/.circleci/scripts/firefox-download.sh

14 lines
446 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-07-06 21:51:35 +02:00
echo "Checking if firefox was already downloaded"
2018-07-06 22:16:18 +02:00
if [ -d "firefox" ]
2018-07-06 21:51:35 +02:00
then
2018-07-06 22:16:18 +02:00
echo "Firefox found. No need to download"
2018-07-06 21:51:35 +02:00
else
2018-07-06 22:44:06 +02:00
FIREFOX_VERSION="61.0.1"
2018-07-06 22:48:17 +02:00
FIREFOX_BINARY="firefox-$FIREFOX_VERSION.tar.bz2"
2018-07-06 21:51:35 +02:00
echo "Downloading firefox..."
2018-07-06 22:44:06 +02:00
wget "https://ftp.mozilla.org/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/$FIREFOX_BINARY" \
2018-07-06 21:51:35 +02:00
&& tar xjf "$FIREFOX_BINARY"
echo "firefox download complete"
fi