From 1de4cc3ba862ace3f78db395a2bd1dfa21e4798e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 27 Aug 2015 22:50:34 +0900 Subject: [PATCH] [install] Fall back statically-linked binary on 64-bit linux Close #322 --- install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install b/install index 1e59e63..d11c3b0 100755 --- a/install +++ b/install @@ -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