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