Subversion Repositories ALCASAR

Rev

Rev 2758 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2758 Rev 2760
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 2758 2019-11-03 23:17:20Z rexy $
2
# $Id: alcasar-urpmi.sh 2760 2019-11-06 12:26:49Z lucas.echard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by 3abtux and Rexy
5
# by 3abtux and Rexy
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 97... Line 97...
97
		fi
97
		fi
98
		if [ $Lang == "fr" ]
98
		if [ $Lang == "fr" ]
99
		then
99
		then
100
			echo "Voulez-vous tenter une synchronisation avec un autre dépôt ? (O/n)"
100
			echo "Voulez-vous tenter une synchronisation avec un autre dépôt ? (O/n)"
101
		else
101
		else
102
			echo "Do you wan't to try a synchronisation with an other repository? (Y/n)"
102
			echo "Do you want to try a synchronisation with an other repository? (Y/n)"
103
		fi
103
		fi
104
		response=0
104
		response=0
105
		PTN='^[oOnNyY]$'
105
		PTN='^[oOnNyY]?$'
106
		until [[ $(expr $response : $PTN) -gt 0 ]]
106
		until [[ "$response" =~ $PTN ]]
107
		do
107
		do
108
			read response
108
			read response
109
		done
109
		done
110
		if [ "$response" = "n" ] || [ "$response" = "N" ]
110
		if [ "$response" = "n" ] || [ "$response" = "N" ]
111
		then
111
		then