Skip to content

Commit

Permalink
- fixes new lines parsing of the version
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Apr 16, 2024
1 parent 4413f12 commit 9484431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/incrementMinorVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Push-Location -Path (Join-Path -Path $PSScriptRoot -ChildPath "..")
$versionFileContent = Get-Content -Path "msgraph/_version.py"
$version = $versionFileContent -replace "VERSION: str = '", '' -replace "'", ''
$versionFileContent = Get-Content -Path "msgraph/_version.py" -Raw
$version = $versionFileContent.Split("`r`n")[0] -replace "VERSION: str = '", '' -replace "'", ''
$versionParts = $version -split "\."
$versionParts[1] = [int]$versionParts[1] + 1
$versionParts[2] = 0
Expand Down

0 comments on commit 9484431

Please sign in to comment.