Commit 4e62055c authored by Alex Wiese's avatar Alex Wiese Committed by Nick Craver

Update build.ps1

The -Contains operator doesn't do substring comparisons.

> -Contains
>Description: Containment operator. Tells whether a collection of reference values includes a single test value.

Should be using -Match operator instead.
parent 3c7cde28
......@@ -30,7 +30,7 @@ function CalculateVersion() {
Exit 1
}
if ($semVersion -contains "-") {
if ($semVersion -match "-") {
return "$semVersion-$BuildNumber" #prerelease
} else {
return "$semVersion" #release
......
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