Skip to content

Commit

Permalink
Improve utility tool
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Jan 22, 2025
1 parent 63041ae commit 14a7a38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ function version_sort() {
}

# Compare two numeric versions in the form "A.B.C". Works with version numbers
# having up to four components, since that's enough to handle both nginx (3) and
# ngx_pagespeed (4).
# having up to four components, since that's enough to handle nginx (3)
function version_older_than() {
local test_version && \
test_version=$(echo "$@" | tr ' ' '\n' | version_sort | head -n 1)
Expand Down

0 comments on commit 14a7a38

Please sign in to comment.