[script] fix: install uncompress incorrectly

This commit is contained in:
zhang_ji 2016-07-20 15:52:26 +08:00
parent 23fcd6a874
commit 0f3b7f1ee3
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View file

@ -13,3 +13,5 @@
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
Cargo.lock
bin/*

View file

@ -45,9 +45,9 @@ download() {
local url=https://github.com/lotabout/skim/releases/download/v$version/${1}.tar.gz
echo "Downloading: $url"
if command -v curl > /dev/null; then
curl -fL $url | tar -xz -
curl -fL $url | tar xz
elif command -v wget > /dev/null; then
wget -O - $url | tar -xz -
wget -O - $url | tar xz
else
binary_error="curl or wget not found"
return