From 7d0f79a0c7656a0dd68235c93e2f770b0b1b6ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Sipma?= Date: Tue, 25 Nov 2014 17:59:00 +0100 Subject: [PATCH] Group: preferred style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FĂ©lix Sipma --- src/Propellor/Property/Group.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Propellor/Property/Group.hs b/src/Propellor/Property/Group.hs index f03510c..978d3bf 100644 --- a/src/Propellor/Property/Group.hs +++ b/src/Propellor/Property/Group.hs @@ -9,6 +9,6 @@ exists group' mgid = check test (cmdProperty "addgroup" $ args mgid) `describe` unwords ["group", group'] where groupFile = "/etc/group" - test = not <$> elem group' <$> words <$> readProcess "cut" ["-d:", "-f1", groupFile] + test = not . elem group' . words <$> readProcess "cut" ["-d:", "-f1", groupFile] args Nothing = [group'] args (Just gid) = ["--gid", show gid, group']