Skip to content

Commit 0b5e569

Browse files
committed
Update Invoke-ExecOffloadFunctions.ps1
1 parent 7efd8f3 commit 0b5e569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecOffloadFunctions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Function Invoke-ExecOffloadFunctions {
3737

3838
foreach ($Offload in $OffloadVersions) {
3939
$FunctionName = $Offload.RowKey
40-
if ($OffloadVersion -ne $MainVersion.Version) {
40+
if ([semver]$Offload.Version -ne [semver]$MainVersion.Version) {
4141
$CanEnable = $false
4242
$Alerts.Add("The version of $FunctionName ($($Offload.Version)) does not match the current version of $($MainVersion.Version).")
4343
}

0 commit comments

Comments
 (0)