From 54cfd08849a7d41251f56444556f718e5d465eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= Date: Tue, 14 Jun 2022 12:03:06 +0200 Subject: [PATCH] remove extracted lazydocker binary The installation method used up until now would always leave one copy of the lazydocker binary in the extraction directory. This copy is not actually needed after installation, so it should be removed. TheAxelander also pointed this out in his comment at https://github.com/jesseduffield/lazydocker/issues/270#issuecomment-1042983635. This commit changes that behaviour and makes the install script cleanup after itself. --- scripts/install_update_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_update_linux.sh b/scripts/install_update_linux.sh index 6c49719..33003c0 100755 --- a/scripts/install_update_linux.sh +++ b/scripts/install_update_linux.sh @@ -21,4 +21,4 @@ GITHUB_URL="https://github.com/jesseduffield/lazydocker/releases/download/${GITH curl -L -o lazydocker.tar.gz $GITHUB_URL tar xzvf lazydocker.tar.gz lazydocker install -Dm 755 lazydocker -t "$DIR" -rm lazydocker.tar.gz +rm lazydocker lazydocker.tar.gz