mirror of https://framagit.org/kyodev/kyopages.git
52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
user_agent="Mozilla/5.0 (X11; Linux $(uname -m); rv:54.0) Gecko/20100101 Firefox/54.0"
|
||
|
# test wget, $1 url à tester, retourne url testée & entêtes
|
||
|
f__testWget(){
|
||
|
echo "$1: $2"
|
||
|
wget -Sq --tries=1 --timeout=10 --user-agent="$user_agent" --spider --save-headers "$2" &>tempoTest
|
||
|
http="$(cat tempoTest | grep -i 'HTTP/')"
|
||
|
http="$(echo $http | tr '\n' ' - ')"
|
||
|
location="$(cat tempoTest | grep -i 'location')"
|
||
|
echo " $http"
|
||
|
echo " $location"
|
||
|
}
|
||
|
|
||
|
for architecture in linux linux64; do
|
||
|
echo ""
|
||
|
echo "Architecture: $architecture"
|
||
|
echo "====================="
|
||
|
for product in latest esr beta nightly; do
|
||
|
#[ "$product" == "devedition" ]; then
|
||
|
# recup_url="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=$architecture&lang=fr"
|
||
|
if [ "$product" == "latest" ]; then
|
||
|
recup_url="https://download.mozilla.org/?product=firefox-$product&os=$architecture&lang=fr"
|
||
|
elif [ "$product" == "esr" ]; then
|
||
|
recup_url="https://download.mozilla.org/?product=firefox-$product-latest&os=$architecture&lang=fr"
|
||
|
elif [ "$product" == "beta" ]; then
|
||
|
recup_url="https://download.mozilla.org/?product=firefox-beta-latest&os=$architecture&lang=fr"
|
||
|
elif [ "$product" == "nightly" ]; then
|
||
|
recup_url="https://download.mozilla.org/?product=firefox-$product-latest-l10n-ssl&os=linux&lang=fr" ;fi
|
||
|
|
||
|
f__testWget "$product" "$recup_url"
|
||
|
done
|
||
|
done
|
||
|
|
||
|
rm tempoTest
|
||
|
echo ""
|
||
|
|
||
|
exitError
|
||
|
|
||
|
### liens
|
||
|
|
||
|
https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest/README.txt
|
||
|
https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest-beta/README.txt
|
||
|
https://www.mozilla.org/fr/firefox/channel/desktop/
|
||
|
https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=linux&lang=fr
|
||
|
https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest-esr/README.txt
|
||
|
|
||
|
------------------
|
||
|
périmé
|
||
|
https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-aurora-l10n/ 404
|
||
|
https://download.mozilla.org/?product=firefox-aurora-latest-l10n-ssl&os=linux&lang=fr 404 dev ed
|