File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ $bintrayAPIurl = "https://api.bintray.com/search/packages?name=$packageName"
4343$jsonResult = $web_client.DownloadString ($bintrayAPIurl ) | ConvertFrom-Json
4444$bintrayVersion = [version ]$jsonResult.latest_version
4545
46+ # If the api calls return empty then this library cannot be compared to the online versions
47+ # may proceed with the pull request
48+ if (($mavenVersion -eq $null ) -and ($bintrayVersion -eq $null ))
49+ {
50+ Write-Information " This package does not exist yet in the online repository, therefore there are no versions to compare."
51+ return
52+ }
53+
4654# Inform host of current Maven and Bintray versions
4755write-host ' The current version in the Maven central repository is:' $mavenVersion
4856write-host ' The current version in the Bintray central repository is:' $bintrayVersion
You can’t perform that action at this time.
0 commit comments