Commit f4f40077 authored by Shantanu Gadgil's avatar Shantanu Gadgil Committed by Simon Kelley

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

parent b467a454
...@@ -20,7 +20,7 @@ else ...@@ -20,7 +20,7 @@ else
vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep ^v[0-9]` vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep ^v[0-9]`
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "${vers}" | sort | head -n 1 | sed 's/^v//' echo "${vers}" | sort -r | head -n 1 | sed 's/^v//'
else else
cat $1/VERSION cat $1/VERSION
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment