summaryrefslogtreecommitdiff
path: root/src/Job.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-11-13 23:23:08 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-11-13 23:23:08 +0100
commit00e5bc0f9874eb9f929e917ba44bbd7b6f2ca4a8 (patch)
treefbfdb065ed90bbbf65dcbe3c41e9042d46ae15cf /src/Job.hs
parentd6ff11543a3897dd2b38ed121f958ef0050e272c (diff)
Do not require recipe and empty checkout in job definition
Diffstat (limited to 'src/Job.hs')
-rw-r--r--src/Job.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Job.hs b/src/Job.hs
index b40273f..1d4ade3 100644
--- a/src/Job.hs
+++ b/src/Job.hs
@@ -382,7 +382,7 @@ runJob job uses checkoutPath jdir = do
copyRecursive (aoutStorePath aout) target
bracket (liftIO $ openFile (jdir </> "log") WriteMode) (liftIO . hClose) $ \logs -> do
- forM_ (jobRecipe job) $ \p -> do
+ forM_ (fromMaybe [] $ jobRecipe job) $ \p -> do
(Just hin, _, _, hp) <- liftIO $ createProcess_ "" p
{ cwd = Just checkoutPath
, std_in = CreatePipe