1
0
Fork 0
mirror of synced 2024-10-31 16:28:58 -04:00

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

6
yadm
View file

@ -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
} }