Skip to content

Commit

Permalink
docs(README.md): fix installation scripts for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryooooooga committed Jan 17, 2023
1 parent d69b2fe commit b45c5d8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,10 @@ sudo eopkg install lazygit
### Ubuntu

```sh
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/')
```

```sh
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
```

```sh
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
```

Verify the correct installation of lazygit:
Expand Down

0 comments on commit b45c5d8

Please sign in to comment.