aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-08-25 13:16:52 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-08-25 13:16:52 +0000
commit5aeadd27583ae035a2d81b4b183eb72901fe1e10 (patch)
tree556a07ccfeb4c271757319619802123a65061b86 /cron-sh
parent05c03cc02ff0619fe90b361d1e7b53ffea111d87 (diff)
downloadmsec-5aeadd27583ae035a2d81b4b183eb72901fe1e10.tar
msec-5aeadd27583ae035a2d81b4b183eb72901fe1e10.tar.gz
msec-5aeadd27583ae035a2d81b4b183eb72901fe1e10.tar.bz2
msec-5aeadd27583ae035a2d81b4b183eb72901fe1e10.tar.xz
msec-5aeadd27583ae035a2d81b4b183eb72901fe1e10.zip
Properly handle cases when /etc/sysconfig/i18n is not there
Diffstat (limited to 'cron-sh')
-rw-r--r--cron-sh/functions.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh
index f5ae7a7..123ae11 100644
--- a/cron-sh/functions.sh
+++ b/cron-sh/functions.sh
@@ -1,7 +1,10 @@
#!/bin/bash
# msec: shared function
-. /etc/sysconfig/i18n
+if [[ -f /etc/sysconfig/i18n ]]; then
+ . /etc/sysconfig/i18n
+fi
+
if [[ -f /etc/profile.d/10lang.sh ]]; then
. /etc/profile.d/10lang.sh
fi