diff options
| author | Félix Sipma <felix.sipma@no-log.org> | 2014-11-25 17:59:00 +0100 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-11-25 13:12:56 -0400 |
| commit | 7d0f79a0c7656a0dd68235c93e2f770b0b1b6ea3 (patch) | |
| tree | a3e673b223b7d0172fd20f2ced17a1e89d2131d3 | |
| parent | e0d2761e00b76f6857fbd57ff846dbcfe1530465 (diff) | |
Group: preferred style
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
| -rw-r--r-- | src/Propellor/Property/Group.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |
