sh.zio.backup: support newlines in stderr message
parent
dcded5d1b8
commit
ff7c49f93a
|
@ -167,7 +167,7 @@ function trigger_notify() {
|
||||||
"$notify_prog" \
|
"$notify_prog" \
|
||||||
--file "$log_path" \
|
--file "$log_path" \
|
||||||
--level "$level" \
|
--level "$level" \
|
||||||
--message '\\`\\`\\`\\n'"$message"'\\n\\`\\`\\`' \
|
--message '\\`\\`\\`\\n'"${message//$'\n'/'\\n'}"'\\n\\`\\`\\`' \
|
||||||
--title "$title"
|
--title "$title"
|
||||||
|
|
||||||
#--message '```\\n'"${message//$'\n'/'\\n'}"'\\n```' \
|
#--message '```\\n'"${message//$'\n'/'\\n'}"'\\n```' \
|
||||||
|
|
Loading…
Reference in New Issue