Skip to content

Commit c584938

Browse files
committed
fix: fallback to app version if one is not specified
1 parent c5d1558 commit c584938

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/CIPPCore/Public/Assert-CippVersion.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ function Assert-CippVersion {
1414

1515
if ($env:CIPPNG -eq 'true') {
1616
$APIVersion = $env:APP_VERSION
17+
if (!$CIPPVersion) {
18+
$CIPPVersion = $env:APP_VERSION
19+
}
1720
} else {
1821
$APIVersion = (Get-Content -Path (Join-Path $env:CIPPRootPath 'version_latest.txt')).trim()
1922
}

0 commit comments

Comments
 (0)