Skip to content

Commit 6da44da

Browse files
author
Hovsep Mkrtchyan
committed
Fixed ARMIncrementVersion.ps1
1 parent e361024 commit 6da44da

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/ARMIncrementVersion.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function IncrementVersion([string]$FilePath)
5252
Write-Output "Updating File: $FilePath"
5353
(Get-Content $FilePath) |
5454
ForEach-Object {
55-
$temp = ReplaceVersion("ModuleVersion", $_)
56-
ReplaceVersion("RequiredVersion", $temp)
55+
$temp = ReplaceVersion "ModuleVersion" $_
56+
ReplaceVersion "RequiredVersion" $temp
5757
} | Set-Content -Path $FilePath -Encoding UTF8
5858
}
5959

tools/PreparePSRelease.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Param(
1616
[Switch]$Patch
1717
)
1818

19+
$ErrorActionPreference = "Stop"
1920
.\ASMIncrementVersion.ps1 $Folder -Major $Major.IsPresent -Minor $Minor.IsPresent -Patch $Patch.IsPresent
2021
.\ARMIncrementVersion.ps1 $Folder -Major $Major.IsPresent -Minor $Minor.IsPresent -Patch $Patch.IsPresent
2122
.\ARMSyncVersion.ps1 $Folder

0 commit comments

Comments
 (0)