Test that uuid -m works, falling back to plain uuid if not.
This commit is contained in:
parent
bbe1f86325
commit
bc83179a76
3 changed files with 3 additions and 7 deletions
|
@ -36,12 +36,7 @@ genUUID = gen . lines <$> readProcess command params
|
|||
where
|
||||
gen [] = error $ "no output from " ++ command
|
||||
gen (l:_) = toUUID l
|
||||
command = SysConfig.uuid
|
||||
params
|
||||
-- request a random uuid be generated
|
||||
| command == "uuid" = ["-m"]
|
||||
-- uuidgen generates random uuid by default
|
||||
| otherwise = []
|
||||
(command:params) = words SysConfig.uuid
|
||||
|
||||
{- Get current repository's UUID. -}
|
||||
getUUID :: Annex UUID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue