Open szepeviktor opened 9 years ago
semver_compare 2.9.3 3.1.8 returns 1. It does '[' 2 -gt 3 -o 9 -gt 1 ']' and it turns out to be truthy because in case of different major version the minor will decide.
semver_compare 2.9.3 3.1.8
'[' 2 -gt 3 -o 9 -gt 1 ']'
Could it be that your project is not ready? https://github.com/cloudflare/semver_bash
semver_compare 2.9.3 3.1.8
returns 1. It does'[' 2 -gt 3 -o 9 -gt 1 ']'
and it turns out to be truthy because in case of different major version the minor will decide.