mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 15:11:02 +00:00
Improved installation script that avoids sudo rights
This commit is contained in:
parent
c88fba546f
commit
8acb257abe
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue