mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Merge pull request #271 from Eonfge/installationScript
This commit is contained in:
commit
7b253141c3
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# allow specifying different destination directory
|
# allow specifying different destination directory
|
||||||
DIR="${DIR:-"/usr/local/bin"}"
|
DIR="${DIR:-"$HOME/.local/bin"}"
|
||||||
|
|
||||||
# map different architecture variations to the available binaries
|
# map different architecture variations to the available binaries
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
|
|
@ -20,5 +20,5 @@ GITHUB_URL="https://github.com/jesseduffield/lazydocker/releases/download/${GITH
|
||||||
# install/update the local binary
|
# install/update the local binary
|
||||||
curl -L -o lazydocker.tar.gz $GITHUB_URL
|
curl -L -o lazydocker.tar.gz $GITHUB_URL
|
||||||
tar xzvf lazydocker.tar.gz lazydocker
|
tar xzvf lazydocker.tar.gz lazydocker
|
||||||
sudo mv -f lazydocker "$DIR"
|
install -Dm 755 lazydocker -t "$DIR"
|
||||||
rm lazydocker.tar.gz
|
rm lazydocker.tar.gz
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue