diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-08-27 22:50:34 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-08-27 22:50:59 +0900 |
commit | 1de4cc3ba862ace3f78db395a2bd1dfa21e4798e (patch) | |
tree | 7f66948348480b172daaa3984fe5535ba689e51d /install | |
parent | 0d66ad23c61e799ff05c2291b0e8c9540ff7e23e (diff) |
[install] Fall back statically-linked binary on 64-bit linux
Close #322
Diffstat (limited to 'install')
-rwxr-xr-x | install | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |