mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
parent
22ab840439
commit
60640d4fe4
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# allow specifying different destination directory
|
||||||
|
DIR="${DIR:-"/usr/local/bin"}"
|
||||||
|
|
||||||
# map different architecture variations to the available binaries
|
# map different architecture variations to the available binaries
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
|
|
@ -17,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 /usr/local/bin/
|
sudo mv -f lazydocker "$DIR"
|
||||||
rm lazydocker.tar.gz
|
rm lazydocker.tar.gz
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue