From e2d416e3353a1b068e98464523f4fbf2a4698957 Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Wed, 27 May 2020 18:47:40 +0200 Subject: [PATCH] fix docs cron not ignoring release-notes (#6127) The docs cron is supposed to ignore the release-notes.html page when checking whether a docs folder is corrupted, because we manually override it. However, that currently doesn't work, either because the `sed` version we are using does not support changing the delimiters, or because no version of `sed` does and I just imagined it. CHANGELOG_BEGIN CHANGELOG_END --- ci/cron/src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cron/src/Main.hs b/ci/cron/src/Main.hs index 3a8dc8e897..381f8e1f23 100644 --- a/ci/cron/src/Main.hs +++ b/ci/cron/src/Main.hs @@ -197,7 +197,7 @@ build_docs_folder path versions current = do shell_ $ "aws s3 sync s3://docs-daml-com/ " <> path exists dir = Directory.doesDirectoryExist dir checksums path = do - let cmd = "cd " <> path <> "; sed -i ':support/release-notes.html:d' checksum; sha256sum -c checksum" + let cmd = "cd " <> path <> "; sed -i '/support\\/release-notes.html/d' checksum; sha256sum -c checksum" (code, _, _) <- shell_exit_code cmd case code of Exit.ExitSuccess -> return True