mirror of
https://github.com/status-im/infra-role-geth.git
synced 2025-02-16 13:56:31 +00:00
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…
x
Reference in New Issue
Block a user