From 2dc1f385f22b4a6d3dcab0853425408f999dd19e Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Mon, 20 Jul 2020 16:08:21 +0200 Subject: [PATCH] better readable sed command --- bashbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index f0096f0..45e2293 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -11,7 +11,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.99-dev2-0-g2b10471 +#### $$VERSION$$ v0.99-dev2-11-gc5ce29a # # Exit Codes: # - 0 success (hopefully) @@ -778,7 +778,7 @@ process_inline() { process_message() { local num="$1" # Message - MESSAGE[0]+="$(JsonDecode "${UPD["result",${num},"message","text"]}" | sed 's#\\/#/#g')" + MESSAGE[0]+="$(JsonDecode "${UPD["result",${num},"message","text"]}" | sed 's|\\/|/|g')" MESSAGE[ID]="${UPD["result",${num},"message","message_id"]}" # Chat ID is now parsed when update isreceived