OS detection: cleaned up fedora, added debian

This commit is contained in:
nathan 2016-12-29 23:32:54 +01:00
parent 944bf1bbf5
commit 1ecc8f4605

View File

@ -235,6 +235,11 @@ class OSUtil {
return getInfo("arch");
}
public static
boolean isDebian() {
return getInfo("debian");
}
public static
boolean isElementaryOS() {
try {
@ -252,7 +257,7 @@ class OSUtil {
public static
boolean isFedora() {
return getInfo().contains("ID=fedora\n");
return getInfo("fedora");
}
public static