gdritter repos collage / dd9f10d
Capture command output and print it prettier Getty Ritter 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
2727 runCommand root src = do
2828 forM_ (sourceCommands src) $ \ln -> do
2929 let dir = root </> sourceDir src
30 cDebug (" $ " % string % " (in " % string % ")") ln dir
30 cDebug (" $ " % string % " (in '" % string % "')") ln dir
3131 (outH, inH) <- Sys.createPipe
3232 let process = (Sys.shell ln) { Sys.cwd = Just (root </> sourceDir src)
3333 , Sys.std_out = Sys.UseHandle inH