alxwolf / ubios-cert

Manage SSL / TLS certificates with acme.sh (Let's Encrypt, ZeroSSL) for Ubiquiti UbiOS firmwares
MIT License
170 stars 20 forks source link

Fix the if statements to do a proper version comparison #34

Closed ausil closed 1 year ago

ausil commented 1 year ago

shell script uses -gt not > for greater than. as the firmware version is not an integer and the comparison has to be on intergets strip the trailing values as we are just checking for the major version

Signed-off-by: Dennis Gilmore dennis@ausil.us