Improved installation script that avoids sudo rights

This commit is contained in:
Kevin Degeling 2021-09-19 13:45:41 +02:00
parent c88fba546f
commit 8acb257abe

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