on master help sign in
hakyll check: return exit code of 0 on success

The old test returns an exit code of 1 whenever the number of errors is >= 0, which should always be the case. The fix replaces this with a test whether the number of errors is strictly > 0.

commit21585c18f320faf994b8ebf4ad1cccb302096eec authorAndres Loeh <andres@well-typed.com> dateTue 11 Feb 2014, 11:07 (13 years ago) parent5ab9655
1 file changed+1−1
src/Hakyll/Check.hs+1−1
src/Hakyll/Check.hs+1−1
@@ -57,7 +57,7 @@ data Check = All | InternalLinks
5757check :: Configuration -> Verbosity -> Check -> IO ExitCode
5858check config verbosity check' = do
5959 ((), write) <- runChecker checkDestination config verbosity check'
60− return $ if checkerFaulty write >= 0 then ExitFailure 1 else ExitSuccess
60+ return $ if checkerFaulty write > 0 then ExitFailure 1 else ExitSuccess
6161
6262
6363--------------------------------------------------------------------------------