From 5691c6a050090f1d8fa24f8c8b0c9379e0effec8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 21 Nov 2016 15:50:18 +0100 Subject: LOG_TO_SYSLOG: Really expect "yes" with LOG_TO_SYSLOG env var. --- bin/impressive-display | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/impressive-display b/bin/impressive-display index f007811..a5250d0 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -90,10 +90,10 @@ if [ -r $HOME/.impressive-display/config ] && [ ! -d $HOME/.impressive-display/c . $HOME/.impressive-display/config fi -if [ -z "$LOG_TO_SYSLOG" ]; then - OUTPUT="echo" -else +if [ "x$LOG_TO_SYSLOG" = "xyes"]; then OUTPUT="logger -t impressive-display" +else + OUTPUT="echo" fi workdir="$HOME/.impressive-display" -- cgit v1.2.3