Skip to content

Commit 853b5dc

Browse files
committed
Added condition to use same version
Due to a missing condition the current date would be used when not forcing an update for a version that had already been forced. fixes #20
1 parent c543466 commit 853b5dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Wormies-AU-Helpers/public/Get-FixVersion.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ function Get-FixVersion() {
134134
if (!$preRelease -and ([string]$existingVersion).StartsWith($mainVersion)) {
135135
return $existingVersion
136136
}elseif (([string]$existingVersion).StartsWith("${mainVersion}${preRelease}")) {
137+
if ($global:au_Force -ne $true) { return $existingVersion }
137138
}else {
138139
return $Version
139140
}

0 commit comments

Comments
 (0)