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:
parent
37f8a3ab06
commit
86f7af4535
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue