[install] go get -u github.com/junegunn/fzf/src/fzf

This commit is contained in:
Junegunn Choi 2016-05-17 01:41:59 +09:00
parent faccc0a410
commit 4adebfc856
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -230,12 +230,12 @@ if [ -n "$binary_error" ]; then
if [ $binary_available -eq 0 ]; then
echo "No prebuilt binary for $archi ..."
if command -v go > /dev/null; then
echo -n "Building binary (go get github.com/junegunn/fzf/src/fzf) ... "
echo -n "Building binary (go get -u github.com/junegunn/fzf/src/fzf) ... "
if [ -z "${GOPATH-}" ]; then
export GOPATH="${TMPDIR:-/tmp}/fzf-gopath"
mkdir -p "$GOPATH"
fi
if go get github.com/junegunn/fzf/src/fzf; then
if go get -u github.com/junegunn/fzf/src/fzf; then
echo "OK"
cp "$GOPATH/bin/fzf" "$fzf_base/bin/"
else