54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
while : # DEBUT GRANDE BOUCLE
|
||
|
do
|
||
|
|
||
|
clear
|
||
|
echo ".: TIREGOM :."
|
||
|
echo
|
||
|
echo " 1) Bridgestone"
|
||
|
echo " 2) Nankang"
|
||
|
echo " 3) Nokian"
|
||
|
echo " 4) Yokohama"
|
||
|
echo
|
||
|
echo " Q) Quitter"
|
||
|
echo
|
||
|
read -n1 -p "Marque> " ch
|
||
|
|
||
|
case $ch in
|
||
|
1) brand=43;;
|
||
|
2) brand=77;;
|
||
|
3) brand=58;;
|
||
|
4) brand=62;;
|
||
|
q|Q) echo;echo;exit;;
|
||
|
esac
|
||
|
|
||
|
echo;echo
|
||
|
echo " 1) 205 55 16 (Corolla Verso OEM)"
|
||
|
echo " 2) 195 55 15 (Concerto+)"
|
||
|
echo " 3) 195 50 15 (Civic+)"
|
||
|
echo " 4) 175 70 13 (Civic OEM)"
|
||
|
echo " A) AUTRE"
|
||
|
read -n1 -p "Taille> " ch
|
||
|
|
||
|
case $ch in
|
||
|
1) largeur=205; hauteur=55; diam=16;;
|
||
|
2) largeur=195; hauteur=55; diam=15;;
|
||
|
3) largeur=195; hauteur=50; diam=15;;
|
||
|
4) largeur=175; hauteur=70; diam=13;;
|
||
|
A) read -p "Largeur> " largeur
|
||
|
read -p "Hauteur> " hauteur
|
||
|
read -p "Diamètre> " diam
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
if [ -f /c/Windows/explorer.exe ]; then cmdurl=explorer.exe; fi # MSYS2
|
||
|
if [ -f ../usr/bin/termux-open ]; then cmdurl=termux-open; fi # Termux
|
||
|
if [ -f /usr/bin/xdg-open ]; then cmdurl=xdg-open; fi # GNU/Linux
|
||
|
if [ -z $cmdurl ]; then echo Aucun lanceur trouvé !; echo; exit; fi
|
||
|
|
||
|
$cmdurl "https://www.tiregom.fr/recherche?largeur=$largeur&hauteur=$hauteur&diametre=$diam&ref_brand[]=$brand" > /dev/null &
|
||
|
|
||
|
done # FIN GRANDE BOUCLE
|
||
|
echo
|