Skip to content

Commit e192c37

Browse files
authored
Update Build.ps1
1 parent 8a32846 commit e192c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if($LASTEXITCODE -ne 0) { exit 1 }
1414

1515
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
1616
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
17-
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"]
17+
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "main" -and $revision -ne "local"]
1818

1919
echo "build: Version suffix is $suffix"
2020

0 commit comments

Comments
 (0)