From f38382fd3ccf535aa13722d08bbacc8df92ce5d9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 30 Jun 2015 12:34:35 +0930 Subject: [PATCH] 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 --- test-cli/scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-cli/scripts/test.sh b/test-cli/scripts/test.sh index 214fea83c..90e42c4b7 100755 --- a/test-cli/scripts/test.sh +++ b/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()