summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2021-11-14 21:27:04 +0100
committerstuebinm2021-11-14 21:27:04 +0100
commit8b833a462a753b7db38e3cb744947285031f93f4 (patch)
treefbe29963268479e947b0e8d214e7b633a3ca5b68
parent8fc10996e17ba164dc8e29d77efd03113a1f63f0 (diff)
disable print output when copying files
(this would otherwise break the json schema if `--json` is given)
-rw-r--r--lib/WriteRepo.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/WriteRepo.hs b/lib/WriteRepo.hs
index 52f0736..89e1bea 100644
--- a/lib/WriteRepo.hs
+++ b/lib/WriteRepo.hs
@@ -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