Skip to content

[repo] Fix octal-parsing crash in validate.sh version comparison#193

Merged
sethwv merged 1 commit into
Dispatcharr:mainfrom
sv-dispatcharr:main
Jul 25, 2026
Merged

[repo] Fix octal-parsing crash in validate.sh version comparison#193
sethwv merged 1 commit into
Dispatcharr:mainfrom
sv-dispatcharr:main

Conversation

@sethwv

@sethwv sethwv commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

What's wrong

Plugin PR #192 (epgeditarr bump to v0.2.08) failed validate-plugin CI with:

.github/scripts/validate/validate.sh: line 70: ((: 08: value too great for base (error token is "08")

version_greater_than() splits a semver string on "." and compares the segments
with bash ((...)) arithmetic. Bash treats any numeric string with a leading 0
as octal, and 08/09 aren't valid octal digits, so the script aborts (the file
has set -e). Any plugin version with a zero-padded segment ending in 8 or 9,
such as 0.2.08 or 1.09.0, trips this. It isn't specific to epgeditarr.

Fix

Force base-10 interpretation with the 10# prefix on every arithmetic comparison
in version_greater_than(). No other changes needed. validate_semver and
validate_dispatcharr_version only do regex matching, not arithmetic.

Bash arithmetic treats zero-padded segments (e.g. 08, 09) as octal,
which is invalid and aborts the script under set -e. Force base-10
with 10# so version bumps like 0.2.08 no longer fail CI (see PR Dispatcharr#192).
@dispatcharr-plugins-bot dispatcharr-plugins-bot Bot added the Repo Update Scripts or other repository infrastructure. label Jul 25, 2026
@sethwv
sethwv merged commit c90b174 into Dispatcharr:main Jul 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Repo Update Scripts or other repository infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant