Skip to content
Myr

[install] Improve error message

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 55d566b · Browse files · 1 file+12 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−7 removed

  • other:+12 added−7 removed

1 file+12 added−7 removed

modified:install+12 added-7 removed
19 unmodified lines
20}2122check_binary() {23 echo -n " - Checking fzf executable ... "24 local output=$("$fzf_base"/bin/fzf --version 2>&1)25 if [ "$version" = "$output" ]; then24 local output25 output=$("$fzf_base"/bin/fzf --version 2>&1)26 if [ $? -ne 0 ]; then27 echo "Error: $output"28 binary_error="Invalid binary"29 elif [ "$version" != "$output" ]; then30 echo "$output != $version"31 binary_error="Invalid version"32 else33 echo "$output"34 binary_error=""28 else29 echo "$output != $version"30 rm -f "$fzf_base"/bin/fzf31 binary_error="Invalid binary"32 return 135 return 036 fi37 rm -f "$fzf_base"/bin/fzf38 return 139}4041symlink() {42 echo " - Creating symlink: bin/$1 -> bin/fzf"
245 unmodified lines