CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder

-was using PHP syntax :/
-remove error checking around grep process
This commit is contained in:
Martin Konecny 2012-05-14 18:44:23 -04:00
parent 6f7efb14a4
commit 9d672ab374
1 changed files with 3 additions and 1 deletions

View File

@ -186,10 +186,12 @@ fi
set -e
echo "* Making sure /etc/default/locale is set properly"
set +e
update-locale
cat /etc/default/locale | grep -i "LANG=.*UTF-\?8"
set -e
if [ "$?" != "0" ]; then
echo "non UTF-8 default locale found in /etc/default/locale.".PHP_EOL;
echo "non UTF-8 default locale found in /etc/default/locale."
exit 1
fi