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.
This commit is contained in:
Jörg Sachse 2022-06-14 12:03:06 +02:00 committed by Clement Sauvage
parent 2f0b70dc90
commit d9354b1e71

View file

@ -21,4 +21,4 @@ GITHUB_URL="https://github.com/jesseduffield/lazydocker/releases/download/${GITH
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
install -Dm 755 lazydocker -t "$DIR" install -Dm 755 lazydocker -t "$DIR"
rm lazydocker.tar.gz rm lazydocker lazydocker.tar.gz