Skip to content

Commit

Permalink
Mkdirs must be set even even if outFile is null
Browse files Browse the repository at this point in the history
  • Loading branch information
キキジキ committed Jun 3, 2018
1 parent f15fb57 commit a147dc7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/cli.js
Expand Up @@ -66,12 +66,12 @@ function convertOptions (argv) {
options.to_dir = destinationDir
}
if (outFile != null) {
if (outFile === '') {
options.to_file = '-'
} else {
options.to_file = outFile
options.mkdirs = true
}
options.to_file = outFile
}
if (outFile === '') {
options.to_file = '-'
} else {
options.mkdirs = true
}
options.attributes = attributes
if (verbose) {
Expand Down

0 comments on commit a147dc7

Please sign in to comment.