diff options
author | Bruno Barbieri <bruno.barbieri@consensys.net> | 2018-07-07 03:51:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 03:51:35 +0800 |
commit | 0af1702a3fc2f377e0790513639e8cf65fb30525 (patch) | |
tree | e8931a35c2b9e45830d8af6bf0715b6f56c7e7c0 /.circleci/scripts | |
parent | 5b58c2acb47ce7fa9631836ac71539e8109ad619 (diff) | |
download | tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.tar tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.tar.gz tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.tar.bz2 tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.tar.lz tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.tar.xz tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.tar.zst tangerine-wallet-browser-0af1702a3fc2f377e0790513639e8cf65fb30525.zip |
Allow firefox binary to be cached
Diffstat (limited to '.circleci/scripts')
-rwxr-xr-x | .circleci/scripts/firefox-download.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.circleci/scripts/firefox-download.sh b/.circleci/scripts/firefox-download.sh index c63e8c3df..4b828a6ff 100755 --- a/.circleci/scripts/firefox-download.sh +++ b/.circleci/scripts/firefox-download.sh @@ -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" |