From 8f519c87d8db4f53290d1879b4c01e584c553dd7 Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Sun, 22 Jan 2006 11:42:28 +0000 Subject: - avoid calling consoletype if one of the other conditions already fail --- lang.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang.sh b/lang.sh index 2553ec73..5f75281d 100755 --- a/lang.sh +++ b/lang.sh @@ -61,8 +61,10 @@ if [ "$sourced" = 1 ]; then if [ -n "$LANG" ]; then case $LANG in *.utf8*|*.UTF-8*) - if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" -a $SHLVL -eq 1 ]; then + if [ "$TERM" = "linux" -a $SHLVL -eq 1 ]; then + if [ "`/sbin/consoletype`" = "vt" ]; then [ -x /bin/unicode_start ] && /sbin/consoletype fg && /bin/unicode_start $SYSFONT $SYSFONTACM + fi fi ;; esac -- cgit