Merge pull request #271 from Eonfge/installationScript

This commit is contained in:
Jesse Duffield 2021-11-26 22:04:49 +11:00 committed by GitHub
commit 7b253141c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#!/bin/bash
# allow specifying different destination directory
DIR="${DIR:-"/usr/local/bin"}"
DIR="${DIR:-"$HOME/.local/bin"}"
# map different architecture variations to the available binaries
ARCH=$(uname -m)
@ -20,5 +20,5 @@ GITHUB_URL="https://github.com/jesseduffield/lazydocker/releases/download/${GITH
# install/update the local binary
curl -L -o lazydocker.tar.gz $GITHUB_URL
tar xzvf lazydocker.tar.gz lazydocker
sudo mv -f lazydocker "$DIR"
install -Dm 755 lazydocker -t "$DIR"
rm lazydocker.tar.gz