summaryrefslogtreecommitdiff
path: root/src/Hakyll/Main.hs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2013-05-22 15:24:26 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2013-05-22 15:24:26 +0300
commit0a818d0725af6d5242d1545bf40a1eb532dfd1e5 (patch)
treecd4c0d3abf5b728d7fa1fdc5412e73338d3e6550 /src/Hakyll/Main.hs
parent2ef7fee7978af45416634ae9a024523a2f6f0e10 (diff)
downloadhakyll-0a818d0725af6d5242d1545bf40a1eb532dfd1e5.tar.gz
Deploy should propagate error code
And return 1 if neither deployCommand and deploySite is set.
Diffstat (limited to 'src/Hakyll/Main.hs')
-rw-r--r--src/Hakyll/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Main.hs b/src/Hakyll/Main.hs
index 0f0d340..7e50418 100644
--- a/src/Hakyll/Main.hs
+++ b/src/Hakyll/Main.hs
@@ -44,7 +44,7 @@ hakyllWith conf rules = do
Build _ -> Commands.build conf verbosity' rules >>= exitWith
Check _ _ -> Commands.check conf verbosity' check'
Clean _ -> Commands.clean conf
- Deploy _ -> Commands.deploy conf
+ Deploy _ -> Commands.deploy conf >>= exitWith
Help _ -> showHelp
Preview _ p -> Commands.preview conf verbosity' rules p
Rebuild _ -> Commands.rebuild conf verbosity' rules >>= exitWith