Created
October 7, 2019 07:43
-
-
Save oneohthree/b8afc0308a6815cac3ef286223b4cfec to your computer and use it in GitHub Desktop.
This file contains 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" "lnux-i686" "linux-x86_64") | |
locales=("es-ES" "en-US") | |
for release in "${releases[@]}"; do | |
for locale in "${locales[@]}"; do | |
lftp -e "mirror --continue --delete --only-missing --ignore-time --no-perms \ | |
/pub/firefox/releases/$lf/$release/$locale /export/download/aplicaciones/firefox/$release/; quit" \ | |
http://ftp.mozilla.org | |
lftp -e "mirror --continue --delete --only-missing --ignore-time --no-perms \ | |
/pub/thunderbird/releases/$lt/$release/$locale /export/download/aplicaciones/thunderbird/$release/; quit" \ | |
http://ftp.mozilla.org | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment