From eee1eb1217d4ed044b1f9816dc5eead49cc5d7d6 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 5 Apr 2010 16:19:29 +0200 Subject: fix for syntax error. $LOG_TO_FILE may not be set when ui_init is called (i.e. the first time) --- src/core/libs/lib-ui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 5dc6e3d..9c52112 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -7,7 +7,7 @@ source /usr/lib/libui.sh ui_init () { cats=(MAIN PROCEDURE UI UI-INTERACTIVE FS MISC NETWORK PACMAN SOFTWARE) - if [ $LOG_TO_FILE -eq 1 ]; then + if [ "$LOG_TO_FILE" = '1' ]; then logs="$LOG $LOGFILE" else logs=$LOG -- cgit v1.2.3-54-g00ecf