From e87d0de1734429eac20b3f595eea03536f2afa2d Mon Sep 17 00:00:00 2001 From: Silvio Knizek Date: Fri, 14 Apr 2023 19:02:04 +0200 Subject: [PATCH] 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. --- yadm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yadm b/yadm index 003d954..7a17280 100755 --- a/yadm +++ b/yadm @@ -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 }