m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Add git revision to --version output

This commit is contained in:
Junegunn Choi
2017-06-02 17:57:28 +09:00
parent 8bbf9335e1
commit 83e9af6601
4 changed files with 25 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ ask() {
check_binary() {
echo -n " - Checking fzf executable ... "
local output
output=$("$fzf_base"/bin/fzf --version 2>&1)
output=$("$fzf_base"/bin/fzf --version 2>&1 | awk '{print $1}')
if [ $? -ne 0 ]; then
echo "Error: $output"
binary_error="Invalid binary"