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");
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user