Skip to content

Instantly share code, notes, and snippets.

@oneohthree
Created October 7, 2019 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oneohthree/b8afc0308a6815cac3ef286223b4cfec to your computer and use it in GitHub Desktop.
Save oneohthree/b8afc0308a6815cac3ef286223b4cfec to your computer and use it in GitHub Desktop.
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