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.
pull/505/head
Lars The 5 months ago committed by GitHub
parent 80af149b02
commit 880d3e64a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save