From b960f86e2c8eda95c083c8856ed498171b7ba4ad Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sun, 12 Jul 2020 17:52:22 +0200 Subject: [PATCH] Update main.sh --- func/main.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/func/main.sh b/func/main.sh index c01aa123..5d85e7e4 100644 --- a/func/main.sh +++ b/func/main.sh @@ -1040,3 +1040,8 @@ get_web_counter() { echo $counter } + +escape_shell_quote() { + local escape_shell_quoted=${1//\'/\'\\\'\'}; + printf "'%s'" "$escape_shell_quoted" +}