mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-03 22:57:13 +00:00
scstadmin's version check assumed scstVersion() returns a bare "X.Y.Z". After changing the sysfs attribute it may return strings like "SCST version: 3.10.0-pre", which triggered a numeric warning and a false failure: Argument "SCST version: 3" isn't numeric in numeric gt (...) Parse the version number from the raw string and ignore any prefix/suffix. If no version can be parsed, keep the existing failure path. Fixes: https://github.com/SCST-project/scst/issues/296