From 5f0dd36bd65e07f5f63bf990f2943e488b93fd67 Mon Sep 17 00:00:00 2001 From: antao Date: Mon, 31 Dec 2018 00:03:44 +0800 Subject: [PATCH] Modify the get_version.sh script --- get_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_version.sh b/get_version.sh index a7148cf8..18d66041 100755 --- a/get_version.sh +++ b/get_version.sh @@ -1,6 +1,6 @@ #!/bin/sh -GIT_VER=`git log|grep commit|wc -l|sed -e "s/^ *//"` +GIT_VER=`git log|grep ^commit|wc -l|sed -e "s/^ *//"` MD5=`git log|head -1|awk '{printf $2}'` TMP_FILE=/tmp/version echo "#define VERSION \"0.9.11.$GIT_VER\"" > ${TMP_FILE}