commit 0a9033420d03de87056b5a9e409bed7c7a3e3493
parent edfba2a4a97bbeb2442a9e0f422f772262ae344e
Author: Sebastian <sebasjm@gmail.com>
Date: Wed, 19 Jun 2024 10:52:32 -0300
remove quotes deom the id and pwd attr
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/netzbon/setup-merchants.sh b/netzbon/setup-merchants.sh
@@ -14,6 +14,8 @@
#
# FIXME: nice error handling is non-existent...
#
+[ -z "$1" ] && echo missing json file && exit 1
+
set -eu
LENGTH=$(jq length < $1)
echo "Setting up $LENGTH merchants at ${BASE_URL}"
@@ -23,9 +25,8 @@ do
echo "Processing merchant $n"
INDEX=$(expr $n - 1 || true)
NAME=$(jq ".[$INDEX].name" < $1)
- ID=$(jq .[$INDEX].id < $1)
- PW=$(jq .[$INDEX].pass < $1)
-
+ ID=$(jq -r .[$INDEX].id < $1)
+ PW=$(jq -r .[$INDEX].pass < $1)
taler-harness deployment provision-bank-and-merchant \
"https://backend.${BASE_URL}" \
"https://bank.${BASE_URL}" \