gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: avoid double-slashes


From: gnunet
Subject: [taler-deployment] branch master updated: avoid double-slashes
Date: Thu, 19 Nov 2020 17:21:56 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 9025376  avoid double-slashes
9025376 is described below

commit 902537673d10ca803c4b4be72f4ebb2cb941a436
Author: MS <ms@taler.net>
AuthorDate: Thu Nov 19 17:21:29 2020 +0100

    avoid double-slashes
---
 bin/taler-config-tips | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/taler-config-tips b/bin/taler-config-tips
index 3d59c05..f7fc01b 100755
--- a/bin/taler-config-tips
+++ b/bin/taler-config-tips
@@ -2,6 +2,10 @@
 
 set -eu
 
+function join_no_double_slash {
+  echo "$1$2" | sed -s 's/\([^:]\)\/\+/\1\//g'
+}
+
 BANK_URL=$(taler-config -s bank -o base_url)
 MERCHANT_URL=$(taler-config -s frontends -o backend)
 CURRENCY=$(taler-config -s taler -o currency)
@@ -12,9 +16,9 @@ APIKEY=$(taler-config -s frontends -o backend_apikey)
 PAYTO_WITH_SUBJECT=$(taler-merchant-setup-reserve \
   --amount="${CURRENCY}:20" \
   --exchange-url=${EXCHANGE_URL} \
-  --merchant-url="${MERCHANT_URL}/instances/survey/" \
+  --merchant-url=$(join_no_double_slash ${MERCHANT_URL} "/instances/survey") \
   --wire-method=${WIRE_METHOD} \
   --apikey="ApiKey ${APIKEY}")
 echo "Merchant generated the following tip-reserve: $PAYTO_WITH_SUBJECT"
 taler-bank-manage django wire_transfer_payto Survey x ${PAYTO_WITH_SUBJECT} 
"${CURRENCY}:50" 
-echo Tip-reserve got paid.
+echo Paid for tip reserve.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]