Skip to content
Snippets Groups Projects
Commit 68c5bea3 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

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

parent 0f474d54
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ case "$archi" in
Darwin\ i*86) download fzf-$version-darwin_386 ;;
Linux\ x86_64) download fzf-$version-linux_amd64 ;;
Linux\ i*86) download fzf-$version-linux_386 ;;
*) binary_available=0 ;;
*) binary_available=0 binary_error=1 ;;
esac
cd "$fzf_base"
......@@ -173,6 +173,9 @@ fzf() {
$fzf_cmd "\$@"
}
export -f fzf > /dev/null
if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then
export PATH="$fzf_base/bin:\$PATH"
fi
# Auto-completion
# ---------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment