From 096bb0aa21d3e69ed91fc298ace1a749fcf40131 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Apr 2018 16:57:57 -0400 Subject: [PATCH] improve comment --- Utility/Android.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utility/Android.hs b/Utility/Android.hs index a352faa4e2..05bdc340bb 100644 --- a/Utility/Android.hs +++ b/Utility/Android.hs @@ -10,5 +10,8 @@ module Utility.Android where import Common -- Detect when the Linux build is running on Android, eg in termux. +-- +-- Note that this relies on termux's uname having been built with "Android" +-- as the os name. Often on Android, uname will report "Linux". osAndroid :: IO Bool osAndroid = ("Android" `isPrefixOf` ) <$> readProcess "uname" ["-o"]