Skip to content

Commit

Permalink
Fix the exit code behaviour of check
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Dec 22, 2016
1 parent 3f4de12 commit 6f5b1c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Hakyll/Commands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ build conf logger rules = fst <$> run conf logger rules

--------------------------------------------------------------------------------
-- | Run the checker and exit
check :: Configuration -> Logger -> Check.Check -> IO ()
check config logger check' = Check.check config logger check' >>= exitWith
check :: Configuration -> Logger -> Check.Check -> IO ExitCode
check = Check.check


--------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Hakyll/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ hakyllWithExitCode conf rules = do

case args'' of
Build -> Commands.build conf logger rules
Check _ -> Commands.check conf logger check' >> ok
Check _ -> Commands.check conf logger check'
Clean -> Commands.clean conf logger >> ok
Deploy -> Commands.deploy conf
Preview p -> Commands.preview conf logger rules p >> ok
Expand Down

0 comments on commit 6f5b1c0

Please sign in to comment.