Skip to content

Commit 81569a5

Browse files
baywetzengin
andauthored
Apply suggestions from code review
Co-authored-by: Mustafa Zengin <muzengin@microsoft.com>
1 parent 6465a6f commit 81569a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/validateMavenVersion.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Param(
1818
)
1919

2020
#Find the local version from the Gradle.Properties file
21-
if($propertiesPath -eq "" || $null -eq $propertiesPath) {
21+
if($propertiesPath -eq "" -or $null -eq $propertiesPath) {
2222
$propertiesPath = Join-Path -Path $PSScriptRoot -ChildPath "../gradle.properties"
2323
}
2424
$file = get-item $propertiesPath
@@ -59,9 +59,9 @@ if($mavenVersion -ne $bintrayVersion){
5959
Write-Warning "The current Maven and Bintray versions are not the same"
6060
}
6161
#Success if Local version has been updated, Error otherwise.
62-
if($localVersion -gt $bintrayVersion && $localVersion -gt $mavenVersion){
62+
if($localVersion -gt $bintrayVersion -and $localVersion -gt $mavenVersion){
6363
Write-Host "The current pull request is of a greater version"
6464
}
6565
else{
6666
Write-Error "The current local version is not updated. Please update the local version in the Gradle.Properties file."
67-
}
67+
}

0 commit comments

Comments
 (0)