File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ function Assert-CippVersion {
14
14
$APIVersion = (Get-Content ' version_latest.txt' - Raw).trim()
15
15
16
16
$RemoteAPIVersion = (Invoke-RestMethod - Uri ' https://raw.githubusercontent.com/KelvinTegelaar/CIPP-API/master/version_latest.txt' ).trim()
17
- $RemoteCIPPVersion = (Invoke-RestMethod - Uri ' https://raw.githubusercontent.com/KelvinTegelaar/CIPP/master/public/version_latest.txt' ).trim()
17
+ $RemoteCIPPVersion = (Invoke-RestMethod - Uri ' https://raw.githubusercontent.com/KelvinTegelaar/CIPP/main/public/version_latest.txt' ).trim()
18
+
18
19
19
20
[PSCustomObject ]@ {
20
21
LocalCIPPVersion = $CIPPVersion
21
22
RemoteCIPPVersion = $RemoteCIPPVersion
22
23
LocalCIPPAPIVersion = $APIVersion
23
24
RemoteCIPPAPIVersion = $RemoteAPIVersion
24
- OutOfDateCIPP = ([version ]$RemoteCIPPVersion -gt [version ]$CIPPVersion )
25
- OutOfDateCIPPAPI = ([version ]$RemoteAPIVersion -gt [version ]$APIVersion )
25
+ OutOfDateCIPP = ([semver ]$RemoteCIPPVersion -gt [semver ]$CIPPVersion )
26
+ OutOfDateCIPPAPI = ([semver ]$RemoteAPIVersion -gt [semver ]$APIVersion )
26
27
}
27
28
}
You can’t perform that action at this time.
0 commit comments