mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
11
install
11
install
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[[ "$@" =~ --pre ]] && version=0.10.5 pre=1 ||
|
||||
version=0.10.5 pre=0
|
||||
[[ "$@" =~ --pre ]] && version=0.10.6 pre=1 ||
|
||||
version=0.10.6 pre=0
|
||||
|
||||
cd $(dirname $BASH_SOURCE)
|
||||
fzf_base=$(pwd)
|
||||
@@ -80,12 +80,7 @@ download() {
|
||||
return
|
||||
fi
|
||||
|
||||
chmod +x $1 && symlink $1 || return 1
|
||||
if [[ $1 =~ linux_amd64$ ]]; then
|
||||
check_binary || download $1-static
|
||||
else
|
||||
check_binary
|
||||
fi
|
||||
chmod +x $1 && symlink $1 && check_binary
|
||||
}
|
||||
|
||||
# Try to download binary executable
|
||||
|
||||
Reference in New Issue
Block a user