update: pvl/log: fix no-tty execution
authorTero Marttila <tero.marttila@aalto.fi>
Mon, 02 Mar 2015 20:35:29 +0200
changeset 703 6fb97fcf0999
parent 702 842ab9de900c
child 704 1d5625a944fe
update: pvl/log: fix no-tty execution
lib/pvl/log.sh
--- 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.