diff --git a/script b/script index f8d7838..ba1179c 100755 --- a/script +++ b/script @@ -77,7 +77,9 @@ log() { esac if [ $LEVEL -ge $LOG_VERBOSE_VALUE ]; then - printf "%s%s%s\n" "${COLOR:-}" "${TIME:-}" "$*" >&2 + printf "%s" "$*" | while IFS='' read -r LINE; do + printf "%s%s%s\n" "${COLOR:-}" "${TIME:-}" "$LINE" >&2 + done fi }