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:
Silvio Knizek 2023-04-14 19:02:04 +02:00 committed by GitHub
parent e4bb8a79a4
commit e87d0de173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

6
yadm
View File

@ -684,7 +684,7 @@ function set_local_alt_values() {
local_distro_family="$(query_distro_family)"
}
u
function alt_linking() {
local alt_scores=()
@ -1772,7 +1772,9 @@ function set_operating_system() {
OPERATING_SYSTEM=$(uname -o)
;;
*)
;;
if [[ "$(uname -o)" == "Android" ]]; then
OPERATING_SYSTEM=Android
fi
esac
}