hlint tweaks
Remotes.hs next, and also Backend/* and Command/*
This commit is contained in:
parent
fd11b5a3e5
commit
57adb0347b
12 changed files with 74 additions and 82 deletions
|
@ -15,10 +15,10 @@ import qualified SysConfig
|
|||
copyFile :: FilePath -> FilePath -> IO Bool
|
||||
copyFile src dest = boolSystem "cp" opts
|
||||
where
|
||||
opts = if (SysConfig.cp_reflink_auto)
|
||||
opts = if SysConfig.cp_reflink_auto
|
||||
then ["--reflink=auto", src, dest]
|
||||
else if (SysConfig.cp_a)
|
||||
else if SysConfig.cp_a
|
||||
then ["-a", src, dest]
|
||||
else if (SysConfig.cp_p)
|
||||
else if SysConfig.cp_p
|
||||
then ["-p", src, dest]
|
||||
else [src, dest]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue