Skip to content

Commit

Permalink
fix --dump-content option
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Jul 24, 2024
1 parent 8bbf7ab commit c4c6fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion single-file-cli-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async function capturePage(options) {
} else {
filename = await getFilename(filename, options);
}
if (filename) {
if (filename && !options.dumpContent) {
const directoryName = await path.dirname(filename);
if (directoryName !== ".") {
await mkdir(directoryName, { recursive: true });
Expand Down

0 comments on commit c4c6fc4

Please sign in to comment.