Fixed string comparison issue for installer on debian

This commit is contained in:
Duncan Sommerville 2015-03-18 10:00:07 -04:00
parent cca9ba0c36
commit a91656a063
1 changed files with 2 additions and 2 deletions

View File

@ -579,7 +579,7 @@ if [ "$ignore_dependencies" = "f" ]; then
set +e
verbose "\n * Generating locales"
for i in `ls ${web_root}/../locale | grep ".._.."`; do
if [ "$dist" = "Debian" ]; then
if [ "$dist" = "debian" ]; then
grep -qi "^$i" /etc/locale.gen
if [ $? -ne 0 ]; then
verbose "$i.UTF-8 UTF-8" >> /etc/locale.gen
@ -590,7 +590,7 @@ if [ "$ignore_dependencies" = "f" ]; then
done
set -e
if [ "$dist" = "Debian" ]; then
if [ "$dist" = "debian" ]; then
loudCmd "/usr/sbin/locale-gen"
fi
fi