From c05e83a1b28404b75860e786f6de5ab9ed409e4a Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Tue, 16 Jul 2019 19:08:28 +0300 Subject: [PATCH] Unquote WOORL expansion to allow extra cli args (#60) * Hack my way out of no-ws-in-filename problem --- scripts/create-manual-refund.sh | 2 +- scripts/dominant/commit-base-fixture.sh | 2 +- scripts/dominant/create-account.sh | 2 +- scripts/fail-machine.sh | 2 +- scripts/get-posting-plan-batch.sh | 2 +- scripts/hellgate/get-invoice-events.sh | 2 +- scripts/hellgate/get-invoice-state.sh | 2 +- scripts/hellgate/get-party-events.sh | 2 +- scripts/hellgate/get-party-state.sh | 2 +- scripts/machinegun/repair-machine.sh | 2 +- scripts/refund-invoice-payment.sh | 2 +- scripts/repair-invoice.sh | 2 +- scripts/rollback-posting-plan.sh | 4 ++-- scripts/submit-posting-plan.sh | 4 ++-- woorlrc.sample | 2 +- 15 files changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/create-manual-refund.sh b/scripts/create-manual-refund.sh index 56c1fb9..64472ab 100755 --- a/scripts/create-manual-refund.sh +++ b/scripts/create-manual-refund.sh @@ -51,7 +51,7 @@ fi [ -f woorlrc ] && source woorlrc -"${WOORL:-woorl}" \ +"${WOORL[@]:-woorl}" \ -s "${DAMSEL}/proto/payment_processing.thrift" \ "http://${HELLGATE:-hellgate}:8022/v1/processing/invoicing" \ Invoicing CreateManualRefund "${USERINFO}" "\"${INVOICE_ID}\"" "\"${PAYMENT_ID}\"" "${PARAMS}" diff --git a/scripts/dominant/commit-base-fixture.sh b/scripts/dominant/commit-base-fixture.sh index 4d736cc..ee87a17 100755 --- a/scripts/dominant/commit-base-fixture.sh +++ b/scripts/dominant/commit-base-fixture.sh @@ -23,7 +23,7 @@ case "$1" in ;; * ) FIXTURE=$("${LIBDIR}/template.sh" "${CURDIR}/base-fixture.commit.json.tpl" $*) - "${WOORL:-woorl}" $* \ + "${WOORL[@]:-woorl}" $* \ -s "${DAMSEL}/proto/domain_config.thrift" \ "http://${DOMINANT:-dominant}:8022/v1/domain/repository" \ Repository Commit 0 "${FIXTURE}" diff --git a/scripts/dominant/create-account.sh b/scripts/dominant/create-account.sh index 961f733..47f96f2 100755 --- a/scripts/dominant/create-account.sh +++ b/scripts/dominant/create-account.sh @@ -8,7 +8,7 @@ shift 1 [ -z "${CURRENCY}" ] && { echo "No currency code specified"; exit -1; } -"${WOORL:-woorl}" $* \ +"${WOORL[@]:-woorl}" $* \ -s "${DAMSEL}/proto/accounter.thrift" \ "http://${SHUMWAY:-shumway}:8022/accounter" \ Accounter CreateAccount "{\"currency_sym_code\":\"${CURRENCY}\"}" diff --git a/scripts/fail-machine.sh b/scripts/fail-machine.sh index 238bbdc..dd4d60a 100755 --- a/scripts/fail-machine.sh +++ b/scripts/fail-machine.sh @@ -43,7 +43,7 @@ CALLARGS=$(cat <