From 0f3b7f1ee3c16d9a6800ce0abd7b4c9d467173d9 Mon Sep 17 00:00:00 2001 From: zhang_ji Date: Wed, 20 Jul 2016 15:52:26 +0800 Subject: [PATCH] [script] fix: install uncompress incorrectly --- .gitignore | 2 ++ install | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a29d6856..58ea39cf 100644 --- a/.gitignore +++ b/.gitignore @@ -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/* diff --git a/install b/install index 90dcb4ff..aa75da40 100755 --- a/install +++ b/install @@ -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