From 0de422a2b04c0d60cf4719fffe8b1c0aa1a7d7fa Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 1 Apr 2024 23:57:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/bin/sh.zio.backup | 1 + usr/local/bin/sh.zio.notify | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/local/bin/sh.zio.backup b/usr/local/bin/sh.zio.backup index afe5634..6f36d04 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -164,6 +164,7 @@ function trigger_notify() { if [[ ! -f "$notify_prog" ]]; then say warning "'$notify_prog' not found. Not sending notification" else + message="$(echo $message | sed -e "s/\`/'/g")" "$notify_prog" \ --file "$log_path" \ --level "$level" \ diff --git a/usr/local/bin/sh.zio.notify b/usr/local/bin/sh.zio.notify index d712b4c..a41d1a1 100755 --- a/usr/local/bin/sh.zio.notify +++ b/usr/local/bin/sh.zio.notify @@ -49,8 +49,6 @@ function main() { token="$(cat "$token_path")" - message="$(echo $message | sed -e "s/\`/'/g")" - hostname="$(hostname -s)" invoked_by="$_invoked_by" level_emoji="$(get_level_emoji "$_level")"