add searchPathContents
And rename related functions for consistency.
This commit is contained in:
parent
aec2cf0abe
commit
1b63132ca3
18 changed files with 60 additions and 49 deletions
|
@ -79,7 +79,7 @@ autoStart o = do
|
|||
f <- autoStartFile
|
||||
giveup $ "Nothing listed in " ++ f
|
||||
program <- programPath
|
||||
haveionice <- pure BuildInfo.ionice <&&> inPath "ionice"
|
||||
haveionice <- pure BuildInfo.ionice <&&> inSearchPath "ionice"
|
||||
pids <- forM dirs $ \d -> do
|
||||
putStrLn $ "git-annex autostart in " ++ d
|
||||
mpid <- catchMaybeIO $ go haveionice program d
|
||||
|
|
|
@ -64,7 +64,7 @@ runViewer :: FilePath -> [(String, [CommandParam])] -> Annex Bool
|
|||
runViewer file [] = do
|
||||
showLongNote $ "left map in " ++ file
|
||||
return True
|
||||
runViewer file ((c, ps):rest) = ifM (liftIO $ inPath c)
|
||||
runViewer file ((c, ps):rest) = ifM (liftIO $ inSearchPath c)
|
||||
( do
|
||||
showLongNote $ "running: " ++ c ++ unwords (toCommand ps)
|
||||
showOutput
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue