Code cleanup/polish

This commit is contained in:
nathan 2016-12-26 23:19:02 +01:00
parent 66189e9155
commit d9f3a6861f

View File

@ -186,8 +186,6 @@ class OsUtil {
// ID=fedora
if (output.contains("ID=fedora\n")) {
int fedoraVersion = 0;
// should be: VERSION_ID=23\n or something
int beginIndex = output.indexOf("VERSION_ID=") + 11;
String fedoraVersion_ = output.substring(beginIndex, output.indexOf(OS.LINE_SEPARATOR_UNIX, beginIndex));
@ -223,6 +221,11 @@ class OsUtil {
return false;
}
public static
boolean isFedora() {
return getInfo().contains("ID=fedora\n");
}
public static
boolean isLinuxMint() {
return getInfo("linuxmint");