From 1d45a7606dbe53ffec422b48cb97ae1bb95ec4a3 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Sun, 18 Jul 2021 13:51:44 +0200 Subject: [PATCH] Fix Docker build --- extra/mark-as-nightly.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extra/mark-as-nightly.js b/extra/mark-as-nightly.js index c35455e87..28496511b 100644 --- a/extra/mark-as-nightly.js +++ b/extra/mark-as-nightly.js @@ -34,6 +34,7 @@ if (newVersion) { fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n") // Process README.md - fs.writeFileSync("README.md", fs.readFileSync("README.md", 'utf8').replaceAll(oldVersion, newVersion)) + if (fs.existsSync("README.md")) { + fs.writeFileSync("README.md", fs.readFileSync("README.md", 'utf8').replaceAll(oldVersion, newVersion)) + } } -