Subversion Repositories ALCASAR

Rev

Rev 2757 | Rev 2840 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2757 Rev 2760
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-rpm-download.sh 2757 2019-10-31 17:59:21Z rexy $
2
# $Id: alcasar-rpm-download.sh 2760 2019-11-06 12:26:49Z lucas.echard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by Franck BOUIJOUX and Richard REY
5
# by Franck BOUIJOUX and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 76... Line 76...
76
		if [ $(expr $try_nb) -eq $MIRROR_NBR ]
76
		if [ $(expr $try_nb) -eq $MIRROR_NBR ]
77
		then
77
		then
78
			rpm_error
78
			rpm_error
79
			exit 1
79
			exit 1
80
		fi
80
		fi
81
		echo "Voulez-vous tenter une synchronisation avec un autre dépôt?"
81
		echo "Voulez-vous tenter une synchronisation avec un autre dépôt (O/n)?"
82
		echo "Do you wan't to try a synchronisation with an other repository?"
82
		echo "Do you want to try a synchronisation with an other repository (Y/n)?"
83
		response=0
83
		response=0
84
		PTN='^[oOnNyY]$'
84
		PTN='^[oOnNyY]?$'
85
		until [[ $(expr $response : $PTN) -gt 0 ]]
85
		until [[ "$response" =~ $PTN ]]
86
		do
86
		do
87
			read response
87
			read response
88
		done
88
		done
89
		if [ "$response" = "n" ] || [ "$response" = "N" ]
89
		if [ "$response" = "n" ] || [ "$response" = "N" ]
90
		then
90
		then