summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-05 16:17:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-05 16:17:54 +0900
commitee5aeb80a49fbf7bb958e09aa641ef17fb885884 (patch)
treea2d59140828b206986031b028b81b7cc7185fa51 /install
parent02ceae15a235de6b5cd2aca9de070fb3fff78e5b (diff)
downloadfzf-ee5aeb80a49fbf7bb958e09aa641ef17fb885884.tar.gz
0.16.4
Diffstat (limited to 'install')
-rwxr-xr-xinstall20
1 files changed, 3 insertions, 17 deletions
diff --git a/install b/install
index 9c8059d6..3d075656 100755
--- a/install
+++ b/install
@@ -2,7 +2,7 @@
set -u
-version=0.16.3
+version=0.16.4
auto_completion=
key_bindings=
update_config=2
@@ -88,17 +88,6 @@ check_binary() {
return 1
}
-symlink() {
- echo " - Creating symlink: bin/$1 -> bin/fzf"
- (cd "$fzf_base"/bin &&
- rm -f fzf &&
- ln -sf $1 fzf)
- if [ $? -ne 0 ]; then
- binary_error="Failed to create symlink"
- return 1
- fi
-}
-
link_fzf_in_path() {
if which_fzf="$(command -v fzf)"; then
echo " - Found in \$PATH"
@@ -124,9 +113,6 @@ download() {
echo " - Already exists"
check_binary && return
fi
- if [ -x "$fzf_base"/bin/$1 ]; then
- symlink $1 && check_binary && return
- fi
link_fzf_in_path && return
fi
mkdir -p "$fzf_base"/bin && cd "$fzf_base"/bin
@@ -147,12 +133,12 @@ download() {
fi
set +o pipefail
- if [ ! -f $1 ]; then
+ if [ ! -f fzf ]; then
binary_error="Failed to download ${1}"
return
fi
- chmod +x $1 && symlink $1 && check_binary
+ chmod +x fzf && check_binary
}
# Try to download binary executable