mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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>
This commit is contained in:
parent
8f4426e09b
commit
f38382fd3c
@ -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…
Reference in New Issue
Block a user