Fix install with unsupported tar -z

Some tar binaries (like the one from busybox in buildroot) have troubles with "tar -z" parameters. This patch overcomes the problem calling to gzip prior to tar.
This commit is contained in:
Lars The 2024-01-12 12:30:51 +01:00 committed by GitHub
parent 80af149b02
commit 880d3e64a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ 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
#tar xzvf lazydocker.tar.gz lazydocker
gzip -dc lazydocker.tar.gz | tar xf - lazydocker
install -Dm 755 lazydocker -t "$DIR"
rm lazydocker lazydocker.tar.gz