diff --git a/sh/log.sh b/sh/log.sh index 40cb311..1674324 100644 --- a/sh/log.sh +++ b/sh/log.sh @@ -58,7 +58,7 @@ _sh_log() { shift local line for line in "${@}"; do - printf "%s" "${prefix}" - echo " ${line}" + [ -n "${prefix}" ] && printf "%s" "${prefix} " + echo "${line}" done -} \ No newline at end of file +}