diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-13 23:23:08 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-11-13 23:23:08 +0100 |
| commit | 00e5bc0f9874eb9f929e917ba44bbd7b6f2ca4a8 (patch) | |
| tree | fbfdb065ed90bbbf65dcbe3c41e9042d46ae15cf /src/Job.hs | |
| parent | d6ff11543a3897dd2b38ed121f958ef0050e272c (diff) | |
Do not require recipe and empty checkout in job definition
Diffstat (limited to 'src/Job.hs')
| -rw-r--r-- | src/Job.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |