Browse Source

test.sh: handle variances in bitcoin-cli formatting.

In particular, there may or may not be a space between "pubkey" and :.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 10 years ago
parent
commit
f38382fd3c
  1. 2
      test-cli/scripts/test.sh

2
test-cli/scripts/test.sh

@ -6,7 +6,7 @@ set -e
getpubkey()
{
$CLI validateaddress $1 | sed -n 's/.*"pubkey" : "\([0-9a-f]*\)".*/\1/p'
$CLI validateaddress $1 | sed -n 's/.*"pubkey" *: "\([0-9a-f]*\)".*/\1/p'
}
getprivkey()

Loading…
Cancel
Save