start converting from System.Directory to System.OsPath
This is the start of a long road, got the first few files to compile after this large change. Sponsored-by: mycroft
This commit is contained in:
parent
d46504e51e
commit
05bdce328d
8 changed files with 185 additions and 47 deletions
|
@ -8,6 +8,7 @@ import Utility.Path
|
|||
import Utility.Monad
|
||||
import Utility.SafeCommand
|
||||
import Utility.SystemDirectory
|
||||
import Utility.OsPath
|
||||
|
||||
import System.IO
|
||||
import System.FilePath
|
||||
|
@ -106,7 +107,7 @@ findCmdPath k command = do
|
|||
where
|
||||
find d =
|
||||
let f = d </> command
|
||||
in ifM (doesFileExist f) ( return (Just f), return Nothing )
|
||||
in ifM (doesFileExist (toOsPath f)) ( return (Just f), return Nothing )
|
||||
|
||||
quiet :: String -> String
|
||||
quiet s = s ++ " >/dev/null 2>&1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue