Skip to content
Snippets Groups Projects
Commit 8b833a46 authored by stuebinm's avatar stuebinm
Browse files

disable print output when copying files

(this would otherwise break the json schema if `--json` is given)
parent 8fc10996
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ import Types (Dep (Local))
writeAdjustedRepository :: LintConfig' -> FilePath -> FilePath -> DirResult -> IO ExitCode
writeAdjustedRepository config inPath outPath result
| resultIsFatal result && not (configDontCopyAssets config) = do
putStrLn "FATAL: Repository has missing assets; cannot write to outPath"
-- putStrLn "FATAL: Repository has missing assets; cannot write to outPath"
pure (ExitFailure 1)
| otherwise = do
createDirectoryIfMissing True outPath
......@@ -57,7 +57,7 @@ writeAdjustedRepository config inPath outPath result
assetPath = FP.normalise $ inPath </> path
newPath = FP.normalise $ outPath </> path
in do
putStrLn $ "copying " <> assetPath <> " → " <> newPath
-- putStrLn $ "copying " <> assetPath <> " → " <> newPath
copyFile assetPath newPath
pure ExitSuccess
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment