diff options
| author | Simon Law <sfllaw@tailscale.com> | 2025-11-14 12:05:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-14 12:05:48 -0800 |
| commit | bd36817e842d7d9651fc7d6b2c6781d0eb0b56e6 (patch) | |
| tree | e1774d014b90e1cfd3158232a754665adf34b5ce /util/execqueue/execqueue.go | |
| parent | ab4b990d51c41aff8e1ae7a08435dedfe621ce0d (diff) | |
| download | tailscale-bd36817e842d7d9651fc7d6b2c6781d0eb0b56e6.tar.xz tailscale-bd36817e842d7d9651fc7d6b2c6781d0eb0b56e6.zip | |
scripts/installer.sh: compare major versions numerically (#17904)
Most /etc/os-release files set the VERSION_ID to a `MAJOR.MINOR`
string, but we were trying to compare this numerically against a major
version number. I can only assume that Linux Mint used switched from a
plain integer, since shells only do integer comparisons.
This patch extracts a VERSION_MAJOR from the VERSION_ID using
parameter expansion and unifies all the other ad-hoc comparisons to
use it.
Fixes #15841
Signed-off-by: Simon Law <sfllaw@tailscale.com>
Co-authored-by: Xavier <xhienne@users.noreply.github.com>
Diffstat (limited to 'util/execqueue/execqueue.go')
0 files changed, 0 insertions, 0 deletions
