Fix get-version script which returned wrong tag in some situations.

This commit is contained in:
Shantanu Gadgil authored and Simon Kelley committed 2015-02-11 20:16:59 +00:00
1 parent b467a454b4
commit f4f400776b
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ else
vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep ^v[0-9]`
if [ $? -eq 0 ]; then
echo "${vers}" | sort | head -n 1 | sed 's/^v//'
echo "${vers}" | sort -r | head -n 1 | sed 's/^v//'
else
cat $1/VERSION
fi