mirror of
https://github.com/junegunn/fzf.git
synced 2026-05-25 17:58:50 +08:00
[install] Unset FZF_DEFAULT_OPTS when checking the binary
This commit is contained in:
@@ -83,7 +83,7 @@ ask() {
|
||||
check_binary() {
|
||||
echo -n " - Checking fzf executable ... "
|
||||
local output
|
||||
output=$("$fzf_base"/bin/fzf --version 2>&1)
|
||||
output=$(FZF_DEFAULT_OPTS= "$fzf_base"/bin/fzf --version 2>&1)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: $output"
|
||||
binary_error="Invalid binary"
|
||||
|
||||
Reference in New Issue
Block a user