From 7590af34af79f9384b52ab143c3a33ce10fa0b52 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 9 Aug 2018 15:06:54 +0200 Subject: [PATCH] correct delimiter --- home.admin/BBcreateInvoice.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/BBcreateInvoice.sh b/home.admin/BBcreateInvoice.sh index 460e14f..ef25513 100755 --- a/home.admin/BBcreateInvoice.sh +++ b/home.admin/BBcreateInvoice.sh @@ -75,8 +75,8 @@ else echo "WIN" echo "******************************" echo "${result}" - rhash=$(echo "$result" | grep r_hash | cut -d '"'-f4) - payReq=$(echo "$result" | grep pay_req | cut -d '"'-f4) + rhash=$(echo "$result" | grep r_hash | cut -d '"' -f4) + payReq=$(echo "$result" | grep pay_req | cut -d '"' -f4) echo "Give this Invoice/PaymentRequest to someone to pay it:" echo ${payReq} echo "You can use 'lncli lookupinvoice ${rhash}' to check the payment. "