Add git revision to --version output

This commit is contained in:
Junegunn Choi committed 2017-06-02 17:59:12 +09:00
1 parent 8bbf9335e1
commit 83e9af6601
4 files changed
+25 -15

No files matched your search

+1 -1
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"