--- 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.