templates/rpc.hs: fix PARAMS, rop PARAMS_STR and quotes
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f76e6f3779
commit
5ad36567e8
|
@ -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