Add detection for Android
Android is a subtype of Linux (according to `uname -s`), but let's be honest, an Android doesn't behave like a typical Linux distribution.
This commit is contained in:
parent
e4bb8a79a4
commit
e87d0de173
1 changed files with 4 additions and 2 deletions
6
yadm
6
yadm
|
@ -684,7 +684,7 @@ function set_local_alt_values() {
|
||||||
local_distro_family="$(query_distro_family)"
|
local_distro_family="$(query_distro_family)"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
u
|
||||||
function alt_linking() {
|
function alt_linking() {
|
||||||
|
|
||||||
local alt_scores=()
|
local alt_scores=()
|
||||||
|
@ -1772,7 +1772,9 @@ function set_operating_system() {
|
||||||
OPERATING_SYSTEM=$(uname -o)
|
OPERATING_SYSTEM=$(uname -o)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
if [[ "$(uname -o)" == "Android" ]]; then
|
||||||
|
OPERATING_SYSTEM=Android
|
||||||
|
fi
|
||||||
esac
|
esac
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue