# HG changeset patch # User Tero Marttila # Date 1425321329 -7200 # Node ID 6fb97fcf09997ac97d22fbab5dc2d83f8f7a8bc6 # Parent 842ab9de900cb1d0dd40911eba5d7052d3cb3ee0 update: pvl/log: fix no-tty execution diff -r 842ab9de900c -r 6fb97fcf0999 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.