Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.