diff options
author | Ryooooooga <eial5q265e5@gmail.com> | 2023-01-17 16:28:05 +0900 |
---|---|---|
committer | Ryooooooga <eial5q265e5@gmail.com> | 2023-01-17 16:42:51 +0900 |
commit | b45c5d849190d41f5c14cd68139c9a3d54699bb5 (patch) | |
tree | b2aa8aee52bd18713d516aed205dd9cbd4bf612a | |
parent | d69b2fef9a164ee082b93096110aa23a37c77334 (diff) |
docs(README.md): fix installation scripts for 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: |