sh.zio.notify: fix backticks fucking things up
I want to watch Bash die a horrible deathmain
parent
ff7c49f93a
commit
8b8598409a
|
@ -169,8 +169,6 @@ function trigger_notify() {
|
||||||
--level "$level" \
|
--level "$level" \
|
||||||
--message '\\`\\`\\`\\n'"${message//$'\n'/'\\n'}"'\\n\\`\\`\\`' \
|
--message '\\`\\`\\`\\n'"${message//$'\n'/'\\n'}"'\\n\\`\\`\\`' \
|
||||||
--title "$title"
|
--title "$title"
|
||||||
|
|
||||||
#--message '```\\n'"${message//$'\n'/'\\n'}"'\\n```' \
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ function main() {
|
||||||
|
|
||||||
token="$(cat "$token_path")"
|
token="$(cat "$token_path")"
|
||||||
|
|
||||||
|
message="$(echo $message | sed -e "s/\`/'/g")"
|
||||||
|
|
||||||
hostname="$(hostname -s)"
|
hostname="$(hostname -s)"
|
||||||
invoked_by="$_invoked_by"
|
invoked_by="$_invoked_by"
|
||||||
level_emoji="$(get_level_emoji "$_level")"
|
level_emoji="$(get_level_emoji "$_level")"
|
||||||
|
|
Loading…
Reference in New Issue