recognize redhat 'ES'
This commit is contained in:
parent
2642e5ff3b
commit
3e5ba8a9ec
|
@ -197,10 +197,13 @@ public class OperatingSystem {
|
|||
public void parse(String line, OperatingSystem os) {
|
||||
super.parse(line, os);
|
||||
|
||||
String token = "Red Hat Enterprise Linux AS";
|
||||
String token = "Red Hat Enterprise Linux ";
|
||||
|
||||
if (line.startsWith(token)) {
|
||||
os.vendorVersion = "AS " + os.vendorVersion;
|
||||
line = line.substring(token.length());
|
||||
int ix = line.indexOf(" "); //'AS' or 'ES'
|
||||
os.vendorVersion =
|
||||
line.substring(0, ix) + " " + os.vendorVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue