Commit df07f13
Fix curl version comparison (#78)
Thanks to @polkorny for identifying a bug in our curl version
comparison algorithm!
Previously, we'd have problems when curl bumps to version 9.0+ because
our logic would wrongly try to match the minor version to "-ge 16",
which wouldn't work until curl 9.16 is released.
Polkorny gave the idea to compose the major and minor versions into
one single number without the dot, which allows us to perform quick
numerical comparisons.
Signed-off-by: Sergio Durigan Junior <[email protected]>
Reported-by: Matheus Polkorny <[email protected]>
Co-Authored-by: Matheus Polkorny <[email protected]>
Signed-off-by: Sergio Durigan Junior <[email protected]>
Co-authored-by: Sergio Durigan Junior <[email protected]>
Co-authored-by: Matheus Polkorny <[email protected]>1 parent 11f840c commit df07f13
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 213 | + | |
216 | 214 | | |
217 | 215 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
0 commit comments