feat: --decorate-as
This commit is contained in:
@@ -25,3 +25,8 @@ err() {
|
||||
info() {
|
||||
echo "$(date) [$$]>${INFO}Info:${OFF} ${1:-}" | tee -a "$LOGFILE" | cut -d ">" -f 2- >/dev/stderr
|
||||
}
|
||||
|
||||
# Like `info` but without newlnes on stderr.
|
||||
infonn() {
|
||||
echo "$(date) [$$]>${INFO}Info:${OFF} ${1:-}" | tee -a "$LOGFILE" | cut -d ">" -f 2- | tr '\n' ' ' >/dev/stderr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user