Last active
January 27, 2020 23:57
-
-
Save oneohthree/3b7cfe489115c2c43e74f03aa215a6d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lf="$(curl -s https://product-details.mozilla.org/1.0/firefox_versions.json \ | |
| jq -r .LATEST_FIREFOX_VERSION)" | |
lt="$(curl -s https://product-details.mozilla.org/1.0/thunderbird_versions.json \ | |
| jq -r .LATEST_THUNDERBIRD_VERSION)" | |
releases=("win32" "win64" "linux-i686" "linux-x86_64") | |
locales=("es-ES" "en-US") | |
for release in "${releases[@]}"; do | |
for locale in "${locales[@]}"; do | |
cd /path/to/dir/firefox/ | |
wget -N --cut-dirs=4 --recursive --no-parent --no-host-directories \ | |
--reject "index.html*" --execute robots=off \ | |
http://ftp.mozilla.org/pub/firefox/releases/$lf/$release/$locale/ | |
cd /path/to/dir/thunderbird/ | |
wget -N --cut-dirs=4 --recursive --no-parent --no-host-directories \ | |
--reject "index.html*" --execute robots=off \ | |
http://ftp.mozilla.org/pub/thunderbird/releases/$lt/$release/$locale/ | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment