File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ALZ/Private/Deploy-Accelerator-Helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function New-ModuleSetup {
6363 }
6464
6565 $isAutoVersion = $release -eq " latest"
66- $firstRun = $null -eq $currentVersion
66+ $firstRun = $null -eq $currentVersion -or $currentVersion -eq " "
6767 $shouldDownload = $false
6868
6969 if ($isAutoVersion -and $upgrade.IsPresent -and $null -eq $latestReleaseTag ) {
@@ -88,11 +88,11 @@ function New-ModuleSetup {
8888 if (! $shouldDownload -or $isFirstRun ) {
8989 $newVersionAvailable = $false
9090 $currentCalculatedVersion = $currentVersion
91- if ($isAutoVersion -and $null -ne $latestReleaseTag -and $latestReleaseTag -ne $currentVersion ) {
91+ if (! $isFirstRun -and $isAutoVersion -and $null -ne $latestReleaseTag -and $latestReleaseTag -ne $currentVersion ) {
9292 $newVersionAvailable = $true
9393 }
9494
95- if (! $isAutoVersion -and $null -ne $latestReleaseTag -and $latestReleaseTag -ne $currentVersion ) {
95+ if (! $isFirstRun -and ! $ isAutoVersion -and $null -ne $latestReleaseTag -and $latestReleaseTag -ne $currentVersion ) {
9696 $newVersionAvailable = $true
9797 }
9898
You can’t perform that action at this time.
0 commit comments