Skip to content

Commit e9a9a36

Browse files
committed
Bug fix
1 parent e2aabc6 commit e9a9a36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import debug from 'debug'
66
import getData from './getData.js'
77
import downloadFiles from './downloadFiles.js'
88
import generateName from './generateName.js'
9-
// import Listr from 'listr'
109

1110
const log = debug('page-loader')
1211

1312
const getAbsolutePath = dirpath => path.resolve(process.cwd(), dirpath)
1413

15-
const downloadPage = (url, outputDir) => {
14+
const downloadPage = (url, outputDir = process.cwd()) => {
1615
log('download page %s to %s', url, outputDir)
1716

1817
const absOutputDir = getAbsolutePath(outputDir)

0 commit comments

Comments
 (0)