2
0
Fork 0

sh.zio.notify: fix backticks fucking things up

I want to watch Bash die a horrible death
main
Ducky 2024-04-01 23:56:37 +01:00
parent ff7c49f93a
commit 8b8598409a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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")"