improve comment
This commit is contained in:
parent
6e862f47dd
commit
096bb0aa21
1 changed files with 3 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue