Skip to content

Commit

Permalink
use shell cp in tocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Feverqwe committed Oct 30, 2023
1 parent c0d653b commit 9eb8060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/tocs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {dirname, extname, join, normalize, parse, relative, resolve, sep} from 'path';
import {copyFileSync, existsSync, readFileSync, writeFileSync} from 'fs';
import {existsSync, readFileSync, writeFileSync} from 'fs';
import {dump, load} from 'js-yaml';
import shell from 'shelljs';
import walkSync from 'walk-sync';
Expand Down Expand Up @@ -210,7 +210,7 @@ function _copyTocDir(tocPath: string, destDir: string) {

writeFileSync(to, updatedFileContent);
} else {
copyFileSync(from, to);
shell.cp(from, to);
}
});
}
Expand Down

0 comments on commit 9eb8060

Please sign in to comment.