Skip to content

Commit

Permalink
check that output is not equal to input
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jul 19, 2022
1 parent 67c63cb commit 571f31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updatecli/updatecli.d/update-plugins.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ foreach ($dependency in $dependencies) {
$oldVersion = $dependency.version
$plugin = "${artifact}:${oldVersion}"
[string] $output = & $java -jar "$pluginManagerJar" --no-download --available-updates --output txt --jenkins-version "$JenkinsVersion" --plugins $plugin
if ($output -ilike "${artifact}:*") {
if ($output -ne $plugin) {
# Example output:
# credentials:2.6.1.1

Expand Down

0 comments on commit 571f31e

Please sign in to comment.