adjust match for removing automatically generated files

This commit is contained in:
Fred Boniface 2024-11-10 19:06:29 +00:00
parent 173042d741
commit 80762ad3c9

View File

@ -52,7 +52,7 @@ function sortAndMergeYAMLFiles() {
// Remove any files created by dgp2 // Remove any files created by dgp2
files.forEach(file => { files.forEach(file => {
if (file.startsWith('auto-dgp2')) { if (file.startsWith('auto-')) {
fs.unlinkSync(directoryPath + file); fs.unlinkSync(directoryPath + file);
console.log(`Deleted file: ${file}`); console.log(`Deleted file: ${file}`);
} }