Преглед на файлове

Turn revision file to history of revision

jherve преди 1 година
родител
ревизия
5ce0335674
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      to_pdf.js

+ 1 - 1
to_pdf.js

@@ -67,7 +67,7 @@ function writeGitRevisionFile(dataFilePath, templatePath, assetsPath, revPath) {
       return;
     }
 
-    fs.writeFile(revPath, stdout, (err) => {
+    fs.appendFile(revPath, stdout, (err) => {
       if (err) throw err;
     });
     console.log(`Wrote file revision data to ${revPath}`);