From 56b551ea8e52ac136be9b058933845e8d08a4eb3 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 20 Oct 2020 11:54:04 +0900 Subject: [PATCH] Update README to get latest release tag using portable parser --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83d2c6555..902c8d15a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ You should see mempool starting up, which takes over an hour (needs 8 blocks). W ```bash git clone https://github.com/mempool/mempool cd mempool - latestrelease=$(curl -s https://api.github.com/repos/mempool/mempool/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")') + latestrelease=$(curl -s https://api.github.com/repos/mempool/mempool/releases/latest|grep tag_name|head -1|cut -d '"' -f4) git checkout $latestrelease ```