Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 209535 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/share/php-select/libapache.sh (-3 / +3 lines)
Lines 36-42 Link Here
36
chooseApacheVersion ()
36
chooseApacheVersion ()
37
{
37
{
38
	# convert the PHP version to upper-case
38
	# convert the PHP version to upper-case
39
	chosen=$( echo $1 | tr [a-z] [A-Z] )
39
	chosen=$( echo $1 | tr '[[:lower:]]' '[[:upper:]]' )
40
40
41
	# make a list of the mod_php versions available
41
	# make a list of the mod_php versions available
42
	choices=( $(learnApacheMods $G_APACHE_MOD_DIR) )
42
	choices=( $(learnApacheMods $G_APACHE_MOD_DIR) )
Lines 174-180 Link Here
174
	# if we get here, then apache is configured for a mod_php ...
174
	# if we get here, then apache is configured for a mod_php ...
175
	# is it one that is installed?
175
	# is it one that is installed?
176
176
177
	chosen="$( echo $chosen | tr [A-Z] [a-z] )"
177
	chosen="$( echo $chosen | '[[:lower:]]' '[[:upper:]]' )"
178
	for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do
178
	for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do
179
		if [[ ${choices[$i]} == $chosen ]] ; then
179
		if [[ ${choices[$i]} == $chosen ]] ; then
180
			echo $chosen
180
			echo $chosen
Lines 209-215 Link Here
209
	# if we get here, then apache is configured for a mod_php ...
209
	# if we get here, then apache is configured for a mod_php ...
210
	# is it one that is installed?
210
	# is it one that is installed?
211
211
212
	chosen="$( echo $chosen | tr [A-Z] [a-z] )"
212
	chosen="$( echo $chosen | '[[:lower:]]' '[[:upper:]]' )"
213
	for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do
213
	for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do
214
		if [[ ${choices[$i]} == $chosen ]] ; then
214
		if [[ ${choices[$i]} == $chosen ]] ; then
215
			# we have one installed; but is it what we want?
215
			# we have one installed; but is it what we want?

Return to bug 209535