lib/pvl/log.sh
changeset 703 6fb97fcf0999
parent 632 711be783d0a1
child 718 f1c352644c2a
--- a/lib/pvl/log.sh	Mon Mar 02 20:05:43 2015 +0200
+++ b/lib/pvl/log.sh	Mon Mar 02 20:35:29 2015 +0200
@@ -56,7 +56,9 @@
 }
 
 function log_init {
-    [ -t 1 ] && IS_TTY=y
+    if [ -t 1 ]; then
+        IS_TTY=y
+    fi
 }
 
 # Output message to stderr.