From 6e862f47dd31ccfbf4601b0657e0743cd7be34ea Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Apr 2018 16:53:17 -0400 Subject: [PATCH] deal with uname -o newline --- Utility/Android.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility/Android.hs b/Utility/Android.hs index d602ee8df6..a352faa4e2 100644 --- a/Utility/Android.hs +++ b/Utility/Android.hs @@ -11,4 +11,4 @@ import Common -- Detect when the Linux build is running on Android, eg in termux. osAndroid :: IO Bool -osAndroid = ("Android" == ) <$> readProcess "uname" ["-o"] +osAndroid = ("Android" `isPrefixOf` ) <$> readProcess "uname" ["-o"]