summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Group.hs
diff options
context:
space:
mode:
authorJoey Hess2015-12-06 14:33:22 -0400
committerJoey Hess2015-12-06 14:33:22 -0400
commit6c7ad5b021ae46be1fda3004f9c578ab2471d9aa (patch)
tree4319434104db22cc4598746eeb2d6fbf244ed7be /src/Propellor/Property/Group.hs
parent616c6c2e2c2c7dcafa9bc72c7c1bdea650e43e43 (diff)
parent516b7cb886470c6a86d4022d7cf20a8547a98bd9 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Group.hs')
-rw-r--r--src/Propellor/Property/Group.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Propellor/Property/Group.hs b/src/Propellor/Property/Group.hs
index 8499d636..f91ef1c2 100644
--- a/src/Propellor/Property/Group.hs
+++ b/src/Propellor/Property/Group.hs
@@ -5,10 +5,8 @@ import Propellor.Base
type GID = Int
exists :: Group -> Maybe GID -> Property NoInfo
-exists (Group group') mgid = check test $
- cmdProperty "addgroup" (args mgid)
- `assume` MadeChange
- `describe` unwords ["group", group']
+exists (Group 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]