ye olde inverted logic
This commit is contained in:
parent
4bb8720d85
commit
c78aaed317
1 changed files with 4 additions and 4 deletions
|
@ -403,14 +403,14 @@ copyToRemote r key file p
|
||||||
|
|
||||||
fsckOnRemote :: Git.Repo -> [CommandParam] -> Annex (IO Bool)
|
fsckOnRemote :: Git.Repo -> [CommandParam] -> Annex (IO Bool)
|
||||||
fsckOnRemote r params
|
fsckOnRemote r params
|
||||||
| Git.repoIsUrl r = return $ do
|
| Git.repoIsUrl r = do
|
||||||
program <- readProgramFile
|
|
||||||
batchCommand program $ Param "fsck" : params
|
|
||||||
| otherwise = do
|
|
||||||
s <- Ssh.git_annex_shell r "fsck" params []
|
s <- Ssh.git_annex_shell r "fsck" params []
|
||||||
return $ case s of
|
return $ case s of
|
||||||
Nothing -> return False
|
Nothing -> return False
|
||||||
Just (c, ps) -> batchCommand c ps
|
Just (c, ps) -> batchCommand c ps
|
||||||
|
| otherwise = return $ do
|
||||||
|
program <- readProgramFile
|
||||||
|
batchCommand program $ Param "fsck" : params
|
||||||
|
|
||||||
{- Runs an action on a local repository inexpensively, by making an annex
|
{- Runs an action on a local repository inexpensively, by making an annex
|
||||||
- monad using that repository. -}
|
- monad using that repository. -}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue