You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usage of match-version-number-or-higher.bash non numerical version numbers breaks for option "--usingJamf" when version number contains character "b"
#139
Open
katidzehnder opened this issue
Apr 22, 2024
· 3 comments
match-version-number-or-higher.bash is misusing character "b" du substitute | to beak the regex into pieces: maybe replace with "ZZ" or a less common character than b
Thanks for that. As these lines were inherited from the source script https://gist.github.com/talkingmoose/2cf20236e665fcd7ec41311d50c89c0e, I've asked about the choice of b in the comments in case there was some specific reason I'm not sure about. I'm not really sure why the | needs to be substituted at all.
thanks a lot. it works now.
The b was probably used because the script does only check for numbers and nonnumericals are handled like the number 9. as it is so rare to have characters relevant in version number, it is fine to leave the regex to compare numbers and ignore characters.
match-version-number-or-higher.bash is misusing character "b" du substitute | to beak the regex into pieces: maybe replace with "ZZ" or a less common character than b
match-version-number-or-higher.bash:
example with current Spotify that gets wrong output:
./match-version-number-or-higher.bash -j 1.2.35.663.gb699649e
The text was updated successfully, but these errors were encountered: