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"); return getInfo("arch");
} }
public static
boolean isDebian() {
return getInfo("debian");
}
public static public static
boolean isElementaryOS() { boolean isElementaryOS() {
try { try {
@ -252,7 +257,7 @@ class OSUtil {
public static public static
boolean isFedora() { boolean isFedora() {
return getInfo().contains("ID=fedora\n"); return getInfo("fedora");
} }
public static public static