OS detection: cleaned up fedora, added debian
This commit is contained in:
parent
944bf1bbf5
commit
1ecc8f4605
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user