1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02:00

Replace regex for retrieving latest version

This commit is contained in:
TomBaxter 2022-10-03 13:58:04 -04:00
parent b27a2ce39a
commit c686c7f9ed
No known key found for this signature in database
GPG Key ID: 3AE97AAF6AAF0B64

View File

@ -150,7 +150,7 @@ sudo eopkg install lazygit
### Ubuntu
```sh
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-35.]+')
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/')
```
```sh