From 905e11c8fa4c386ac2cd92c2afb19f997a09ccde Mon Sep 17 00:00:00 2001 From: threeoh6000 Date: Wed, 13 Nov 2024 16:40:07 +0000 Subject: [PATCH] Add operating system detection for `linux/android`. --- distro_machine_detection.7 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distro_machine_detection.7 b/distro_machine_detection.7 index 8ed9244..fd33712 100644 --- a/distro_machine_detection.7 +++ b/distro_machine_detection.7 @@ -41,6 +41,9 @@ if [ "$subtype" = "android" ]; then if [ -n "$(getprop ro.product.manufacturer)$(getprop ro.product.model)" ]; then machine="$(getprop ro.product.manufacturer) $(getprop ro.product.model)" fi + if [ -n "$(getprop ro.build.version.release)" ]; then + distro="Android $(getprop ro.build.version.release)" + fi fi if [ "$system_type" = "openbsd" ]; then