Skip to content
Snippets Groups Projects
Commit 11e86003 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

cut the patch number before a '-' too, to enable '7.11.0-pre1' to use

patch number zero.
parent 93aea06e
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ curlversion=$libversion
major=`echo $libversion |cut -d. -f1 | sed -e "s/[^0-9]//g"`
minor=`echo $libversion |cut -d. -f2 | sed -e "s/[^0-9]//g"`
patch=`echo $libversion |cut -d. -f3 | sed -e "s/[^0-9]//g"`
patch=`echo $libversion |cut -d. -f3 | cut -d- -f1 | sed -e "s/[^0-9]//g"`
numeric=`echo "obase=16; $major*256*256 + $minor*256 + $patch" | bc`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment