On CentOS 7 in very specific circumstances where SELINUX is enabled, the version number parsing gets mangled between contexts with egrep output ignored and can be exasperated depending on the values provided in the "extra arguments"
Get the output of the whole version string running the factorio binary as the user, but parse the output after it comes back to the script as the script user, rather than in the factorio user.
On CentOS 7 in very specific circumstances where SELINUX is enabled, the version number parsing gets mangled between contexts with egrep output ignored and can be exasperated depending on the values provided in the "extra arguments"
Get the output of the whole version string running the factorio binary as the user, but parse the output after it comes back to the script as the script user, rather than in the factorio user.