templates/rpc.sh: fix PARAMS by droping PARAMS_STR and quotes

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-05-11 12:13:12 +02:00
parent 37f8a3ab06
commit 86f7af4535
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 2 deletions

View File

@ -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