Skip to content
Myr

[install] Set a temporary GOPATH

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent b4c4a64 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:install+5 added-1 removed
229 unmodified lines
230 if [ $binary_available -eq 0 ]; then231 echo "No prebuilt binary for $archi ..."232 if command -v go > /dev/null; then233 echo -n "Building binary (go get github.com/junegunn/fzf/src/fzf) ... "234 if [ -z "${GOPATH-}" ]; then235 export GOPATH="${TMPDIR:-/tmp}/fzf-gopath"236 mkdir -p "$GOPATH"237 fi238 if go get github.com/junegunn/fzf/src/fzf; then239 echo "OK"236 link_fzf_in_path240 cp "$GOPATH/bin/fzf" "$fzf_base/bin/"241 else242 echo "Failed to build binary ..."243 install_ruby_fzf244 fi
153 unmodified lines