diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-01-26 12:58:49 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 12:58:49 +1100 |
commit | f12a2edefa9f151d83ae2a37176e3438bc60d72b (patch) | |
tree | bfbfc61a78c8e58f8372c088054a1b086195f1e1 | |
parent | 7e54b5641f17b33f30de08bd2fd7909faddde9f0 (diff) | |
parent | b45c5d849190d41f5c14cd68139c9a3d54699bb5 (diff) |
Merge pull request #2372 from Ryooooooga/fix-installation-ubuntu
-rw-r--r-- | README.md | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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: |