more OsPath conversion
Sponsored-by: Leon Schuermann
This commit is contained in:
parent
ee0964e61b
commit
f3539efc16
18 changed files with 156 additions and 153 deletions
|
@ -70,7 +70,7 @@ runSuCommand Nothing _ = return False
|
|||
mkSuCommand :: String -> [CommandParam] -> IO (Maybe SuCommand)
|
||||
#ifndef mingw32_HOST_OS
|
||||
mkSuCommand cmd ps = do
|
||||
pwd <- getCurrentDirectory
|
||||
pwd <- fromOsPath <$> getCurrentDirectory
|
||||
firstM (\(SuCommand _ p _) -> inSearchPath p) =<< selectcmds pwd
|
||||
where
|
||||
selectcmds pwd = ifM (inx <||> (not <$> atconsole))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue