mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +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:
@@ -6,7 +6,7 @@ set -e
|
|||||||
|
|
||||||
getpubkey()
|
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()
|
getprivkey()
|
||||||
|
|||||||
Reference in New Issue
Block a user