fix exit status so json gets terminated properly

This commit is contained in:
Joey Hess 2011-11-14 19:29:35 -04:00
parent bfe38f8ff1
commit 2412b7e689

View file

@ -76,7 +76,7 @@ start = do
fast <- Annex.getState Annex.fast
let stats = if fast then fast_stats else fast_stats ++ slow_stats
evalStateT (mapM_ showStat stats) (StatInfo Nothing Nothing)
stop
next $ next $ return True
stat :: String -> StatState String -> Stat
stat desc a = return $ Just (desc, a)