Skip to content

Commit

Permalink
Update jenkins-support
Browse files Browse the repository at this point in the history
jenkinsci#1456 fixing update plugins in docker jenkins
  • Loading branch information
Shubhdeep02 authored Mar 5, 2024
1 parent 91b7415 commit 467be26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jenkins-support
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
versionLT() {
local v1; v1=$(echo "$1" | cut -d '-' -f 1 )
local q1; q1=$(echo "$1" | cut -s -d '-' -f 2- )
local v2; v2=$(echo "$2" | cut -d '-' -f 1 )
local q2; q2=$(echo "$2" | cut -s -d '-' -f 2- )
local v2; v2=$(echo "$2" | cut -d '-' -f 2 )
local q2; q2=$(echo "$2" | cut -s -d '-' -f 1- )
if [ "$v1" = "$v2" ]; then
if [ "$q1" = "$q2" ]; then
return 1
else
if [ -z "$q1" ]; then
if [ -z "$q1" ]; then
return 1
else
if [ -z "$q2" ]; then
if [ -z "$q2" ]; then
return 0
else
[ "$q1" = "$(echo -e "$q1\n$q2" | sort -V | head -n1)" ]
Expand Down

0 comments on commit 467be26

Please sign in to comment.