fix error message on build when python version has a + at the end

parent 6bf057f4
......@@ -172,7 +172,7 @@ if [[ ! -e $PYTHON ]]; then
else
PYMINVER=270
PYMAXVER=299
PYVER=$($PYTHON --version 2>&1 | gawk '{ gsub(/\./,""); print $2 }')
PYVER=$($PYTHON --version 2>&1 | gawk '{ gsub(/\./,""); gsub(/\+/,""); print $2 }')
if [[ $PYVER -lt $PYMINVER ]]; then
fail_message p-
exit 1
......
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