Skip to content

Commit 9484431

Browse files
committed
- fixes new lines parsing of the version
1 parent 4413f12 commit 9484431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/incrementMinorVersion.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Push-Location -Path (Join-Path -Path $PSScriptRoot -ChildPath "..")
2-
$versionFileContent = Get-Content -Path "msgraph/_version.py"
3-
$version = $versionFileContent -replace "VERSION: str = '", '' -replace "'", ''
2+
$versionFileContent = Get-Content -Path "msgraph/_version.py" -Raw
3+
$version = $versionFileContent.Split("`r`n")[0] -replace "VERSION: str = '", '' -replace "'", ''
44
$versionParts = $version -split "\."
55
$versionParts[1] = [int]$versionParts[1] + 1
66
$versionParts[2] = 0

0 commit comments

Comments
 (0)