Project

General

Profile

« Previous | Next » 

Revision 9241

lib/sh/util.sh: log_custom(): replace all non-whitespace chars in PS4 with $symbol instead of just the first one, so there aren't mixed $symbols and PS4 chars

View differences:

lib/sh/util.sh
197 197
# usage: symbol=... log_custom msg
198 198
log_custom()
199 199
{
200
	local log_indent="${log_indent//[^ ]/$symbol}" PS4="$symbol${PS4#?}"
200
	local log_indent="${log_indent//[^ ]/$symbol}" PS4="${PS4//[^ ]/$symbol}"
201 201
	log "$@"
202 202
}
203 203

  

Also available in: Unified diff