summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-09-19 22:27:09 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-09-19 22:27:09 +0900
commit987799f8fbd2367fe99383a1ddf9ddf5d4ed253f (patch)
treec8802e5ee587aa5a119e63018318589fbf9299bc /install
parentd2f3604c1dd176b485ab82cebc956560f2e73657 (diff)
Revert "0.10.6"
Diffstat (limited to 'install')
-rwxr-xr-xinstall11
1 files changed, 8 insertions, 3 deletions
diff --git a/install b/install
index 51b56ec7..9b9b04d4 100755
--- a/install
+++ b/install
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
-[[ "$@" =~ --pre ]] && version=0.10.6 pre=1 ||
- version=0.10.6 pre=0
+[[ "$@" =~ --pre ]] && version=0.10.5 pre=1 ||
+ version=0.10.5 pre=0
cd $(dirname $BASH_SOURCE)
fzf_base=$(pwd)
@@ -80,7 +80,12 @@ download() {
return
fi
- chmod +x $1 && symlink $1 && check_binary
+ chmod +x $1 && symlink $1 || return 1
+ if [[ $1 =~ linux_amd64$ ]]; then
+ check_binary || download $1-static
+ else
+ check_binary
+ fi
}
# Try to download binary executable