Skip to content

Commit

Permalink
Fix git rm assets dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski authored and horner committed May 4, 2023
1 parent d8a86bc commit b491a58
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/containers/job/JobManagerContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,16 @@ export class JobManagerContainer extends Container {
fileAssetsPaths.push(assetsPath);
}
}
const removeFileAssetsPaths = removeFilePaths
.filter(path => path.endsWith('.md'))
.map(path => path.substring(0, path.length - 3) + '.assets');
const removeFileAssetsPaths = [];
for (const fileToRemove of removeFilePaths
.filter(path => path.endsWith('.md'))
.map(path => path.substring(0, path.length - 3) + '.assets')) {

if (!await transformedFileSystem.exists(fileToRemove)) {
continue;
}
removeFileAssetsPaths.push(fileToRemove);
}

filePaths.push(...fileAssetsPaths);
removeFilePaths.push(...removeFileAssetsPaths);
Expand Down

0 comments on commit b491a58

Please sign in to comment.