1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-31 23:19:40 +02:00

docs(README.md): fix installation scripts for Ubuntu

This commit is contained in:
Ryooooooga 2023-01-17 16:28:05 +09:00
parent d69b2fef9a
commit b45c5d8491
No known key found for this signature in database
GPG Key ID: BAEABE191C5D793E

View File

@ -150,15 +150,10 @@ sudo eopkg install lazygit
### Ubuntu ### Ubuntu
```sh ```sh
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/') LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
```
```sh
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
``` tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
```sh
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
``` ```
Verify the correct installation of lazygit: Verify the correct installation of lazygit: