[install] Unset FZF_DEFAULT_OPTS when checking the binary

This commit is contained in:
Junegunn Choi 2025-01-05 11:32:54 +09:00
parent 4f2c274942
commit 45fc7b903d
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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"