From 5ad36567e810fb74073d8fc82774146450e4761a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 11 May 2021 11:20:47 +0200 Subject: [PATCH] templates/rpc.hs: fix PARAMS, rop 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 429e8f3..e3277e2 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