skip non-directories in status
This commit is contained in:
parent
fdf098db31
commit
0deb0a9658
1 changed files with 3 additions and 1 deletions
|
@ -68,8 +68,10 @@ start [] = do
|
||||||
globalStatus
|
globalStatus
|
||||||
stop
|
stop
|
||||||
start ps = do
|
start ps = do
|
||||||
mapM_ localStatus ps
|
mapM_ localStatus =<< filterM isdir ps
|
||||||
stop
|
stop
|
||||||
|
where
|
||||||
|
isdir = liftIO . catchBoolIO . (isDirectory <$$> getFileStatus)
|
||||||
|
|
||||||
globalStatus :: Annex ()
|
globalStatus :: Annex ()
|
||||||
globalStatus = do
|
globalStatus = do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue