Use same installer for upgrading these

Since there's no auto-updating otherwise
This commit is contained in:
David Heinemeier Hansson 2024-05-29 14:18:51 -07:00
parent 3db5859c48
commit 522b144db6
2 changed files with 14 additions and 18 deletions

View File

@ -1,9 +1,7 @@
if ! command -v lazydocker &>/dev/null; then cd ~/Downloads
cd ~/Downloads LAZYDOCKER_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazydocker/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
LAZYDOCKER_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazydocker/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') curl -sLo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${LAZYDOCKER_VERSION}_Linux_x86_64.tar.gz"
curl -sLo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${LAZYDOCKER_VERSION}_Linux_x86_64.tar.gz" tar -xf lazydocker.tar.gz lazydocker
tar -xf lazydocker.tar.gz lazydocker sudo install lazydocker /usr/local/bin
sudo install lazydocker /usr/local/bin rm lazydocker.tar.gz
rm lazydocker.tar.gz cd -
cd -
fi

View File

@ -1,9 +1,7 @@
if ! command -v lazygit &>/dev/null; then cd ~/Downloads
cd ~/Downloads LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') curl -sLo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
curl -sLo 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
tar -xf lazygit.tar.gz lazygit sudo install lazygit /usr/local/bin
sudo install lazygit /usr/local/bin rm lazygit.tar.gz
rm lazygit.tar.gz cd -
cd -
fi