From 86f7af45356ddb44b7e84122f7bbed0901213cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 11 May 2021 12:13:12 +0200 Subject: [PATCH] templates/rpc.sh: fix PARAMS by droping PARAMS_STR and quotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- templates/rpc.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/rpc.sh.j2 b/templates/rpc.sh.j2 index eab9843..f4dcbe0 100644 --- a/templates/rpc.sh.j2 +++ b/templates/rpc.sh.j2 @@ -12,8 +12,8 @@ if [[ -z "${METHOD}" ]]; then exit 1 fi if [[ -n "${@}" ]]; then - PARAMS=$(printf '%s\",\"' "${@}") - PARAMS="\"${PARAMS_STR%%\",\"}\"" + PARAMS=$(printf '%s,' "${@}") + PARAMS="${@%%,}\"" else PARAMS='' fi