[install] Fall back statically-linked binary on 64-bit linux

Close #322
This commit is contained in:
Junegunn Choi 2015-08-27 22:50:34 +09:00
parent 0d66ad23c6
commit 1de4cc3ba8

View File

@ -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