From 5aeadd27583ae035a2d81b4b183eb72901fe1e10 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 25 Aug 2010 13:16:52 +0000 Subject: Properly handle cases when /etc/sysconfig/i18n is not there --- cron-sh/functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cron-sh') 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 -- cgit v1.2.1