Skip to content

Commit

Permalink
install_update_linux: allow specifying directory
Browse files Browse the repository at this point in the history
Closes #208
  • Loading branch information
dawidd6 committed Mar 15, 2020
1 parent 22ab840 commit 60640d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/install_update_linux.sh
@@ -1,5 +1,8 @@
#!/bin/bash

# allow specifying different destination directory
DIR="${DIR:-"/usr/local/bin"}"

# map different architecture variations to the available binaries
ARCH=$(uname -m)
case $ARCH in
Expand All @@ -17,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 /usr/local/bin/
sudo mv -f lazydocker "$DIR"
rm lazydocker.tar.gz

0 comments on commit 60640d4

Please sign in to comment.