Merge branch 'joeyconfig'

This commit is contained in:
Joey Hess 2014-11-25 15:40:00 -04:00
commit 1d8e08f2ac
1 changed files with 1 additions and 1 deletions

View File

@ -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']