lib/pvl/log.sh
changeset 703 6fb97fcf0999
parent 632 711be783d0a1
child 718 f1c352644c2a
equal deleted inserted replaced
702:842ab9de900c 703:6fb97fcf0999
    54         *)  return 1
    54         *)  return 1
    55     esac
    55     esac
    56 }
    56 }
    57 
    57 
    58 function log_init {
    58 function log_init {
    59     [ -t 1 ] && IS_TTY=y
    59     if [ -t 1 ]; then
       
    60         IS_TTY=y
       
    61     fi
    60 }
    62 }
    61 
    63 
    62 # Output message to stderr.
    64 # Output message to stderr.
    63 function log_msg {
    65 function log_msg {
    64     echo "$*" >&2
    66     echo "$*" >&2