From 7d0f79a0c7656a0dd68235c93e2f770b0b1b6ea3 Mon Sep 17 00:00:00 2001 From: Félix Sipma Date: Tue, 25 Nov 2014 17:59:00 +0100 Subject: Group: preferred style Signed-off-by: Félix Sipma --- src/Propellor/Property/Group.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Propellor/Property/Group.hs') diff --git a/src/Propellor/Property/Group.hs b/src/Propellor/Property/Group.hs index f03510cf..978d3bff 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'] -- cgit v1.2.3