From 853b5dc3f90301810ab2fc6086ae65cc4bb9afda Mon Sep 17 00:00:00 2001 From: AdmiringWorm Date: Thu, 13 Dec 2018 12:35:58 +0100 Subject: [PATCH] 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 --- Wormies-AU-Helpers/public/Get-FixVersion.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Wormies-AU-Helpers/public/Get-FixVersion.ps1 b/Wormies-AU-Helpers/public/Get-FixVersion.ps1 index 175af7a..22b92b0 100644 --- a/Wormies-AU-Helpers/public/Get-FixVersion.ps1 +++ b/Wormies-AU-Helpers/public/Get-FixVersion.ps1 @@ -134,6 +134,7 @@ function Get-FixVersion() { if (!$preRelease -and ([string]$existingVersion).StartsWith($mainVersion)) { return $existingVersion }elseif (([string]$existingVersion).StartsWith("${mainVersion}${preRelease}")) { + if ($global:au_Force -ne $true) { return $existingVersion } }else { return $Version }