Update README to get latest release tag using portable parser

This commit is contained in:
wiz 2020-10-20 11:54:04 +09:00 committed by GitHub
parent ed3811bf2c
commit 56b551ea8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ You should see mempool starting up, which takes over an hour (needs 8 blocks). W
```bash ```bash
git clone https://github.com/mempool/mempool git clone https://github.com/mempool/mempool
cd 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 git checkout $latestrelease
``` ```