Skip to content

Instantly share code, notes, and snippets.

@m8ttyB
Created October 5, 2012 21:10
Show Gist options
  • Save m8ttyB/3842439 to your computer and use it in GitHub Desktop.
Save m8ttyB/3842439 to your computer and use it in GitHub Desktop.
for testing the stub installer (curling ftw)
#!/bin/bash
# locales=(en-US ach af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk km kn ko ku lg lij lt lv mai mk ml mn mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE sw ta ta-LK te th tr uk vi zh-CN zh-TW zu)
products=(firefox-beta-stub firefox-aurora-latest firefox-beta-latest firefox-nightly-latest)
locales=(en-US fr de lg)
platforms=(win linux linux64 osx)
for product in "${products[@]}"
do
for locale in "${locales[@]}"
do
for platform in "${platforms[@]}"
do
echo "product: $product, local: $l, platform: $p"
curl -sL -o /dev/null -w "%{http_code} %{url_effective}\\n\\n" "https://download.mozilla.org/?product=${product}&lang=${locale}&os=${platform}"
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment