Test whether the first version sorts at or above the second.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_version_ge

Purpose

Test whether the first version sorts at or above the second.

Arguments

  • $1 — Current version.
  • $2 — Minimum required version.

Returns

  • 0 if the first version is greater or equal according to sort -V; 1 otherwise.

Usage

  sgnd_version_ge "2.2" "2.1"