feat: --decorate-as

This commit is contained in:
2025-09-12 15:39:20 +02:00
parent 6dc107c7c4
commit 8112586f87
4 changed files with 114 additions and 1 deletions

View File

@@ -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
}