Fix install script for platforms w/o matching Go binary (#141)

This commit is contained in:
Junegunn Choi 2015-03-12 10:06:15 +09:00
parent 0f474d541d
commit 68c5bea3f8

View File

@ -77,7 +77,7 @@ case "$archi" in
Darwin\ i*86) download fzf-$version-darwin_386 ;; Darwin\ i*86) download fzf-$version-darwin_386 ;;
Linux\ x86_64) download fzf-$version-linux_amd64 ;; Linux\ x86_64) download fzf-$version-linux_amd64 ;;
Linux\ i*86) download fzf-$version-linux_386 ;; Linux\ i*86) download fzf-$version-linux_386 ;;
*) binary_available=0 ;; *) binary_available=0 binary_error=1 ;;
esac esac
cd "$fzf_base" cd "$fzf_base"
@ -173,6 +173,9 @@ fzf() {
$fzf_cmd "\$@" $fzf_cmd "\$@"
} }
export -f fzf > /dev/null export -f fzf > /dev/null
if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then
export PATH="$fzf_base/bin:\$PATH"
fi
# Auto-completion # Auto-completion
# --------------- # ---------------