avoid git-annex-shell test
This commit is contained in:
parent
9f883192af
commit
8fdbd1190d
1 changed files with 11 additions and 11 deletions
22
git-annex.hs
22
git-annex.hs
|
@ -17,18 +17,18 @@ import qualified Test
|
|||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = run =<< getProgName
|
||||
main = do
|
||||
ps <- getArgs
|
||||
run ps =<< getProgName
|
||||
where
|
||||
run n
|
||||
| isshell n = go CmdLine.GitAnnexShell.run
|
||||
| otherwise = go CmdLine.GitAnnex.run
|
||||
isshell n = takeFileName n == "git-annex-shell"
|
||||
go a = do
|
||||
ps <- getArgs
|
||||
run ps n
|
||||
| isshell n = CmdLine.GitAnnexShell.run ps
|
||||
| otherwise =
|
||||
#ifdef WITH_TESTSUITE
|
||||
case ps of
|
||||
("test":ps') -> Test.main ps'
|
||||
_ -> a ps
|
||||
case ps of
|
||||
("test":ps') -> Test.main ps'
|
||||
_ -> CmdLine.GitAnnex.run ps
|
||||
#else
|
||||
a ps
|
||||
CmdLine.GitAnnex.run ps
|
||||
#endif
|
||||
isshell n = takeFileName n == "git-annex-shell"
|
||||
|
|
Loading…
Reference in a new issue