mirror of
https://github.com/markedjs/marked
synced 2024-11-23 09:48:17 +00:00
quick fix for bin
This commit is contained in:
parent
3e2d9223c7
commit
ec884486d0
@ -83,11 +83,11 @@ var main = function(argv) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!input && files.length !== 1) {
|
||||
if (!input && files.length !== 2) {
|
||||
input = files.pop();
|
||||
}
|
||||
|
||||
if (files.length === 1) {
|
||||
if (!input && files.length === 2) {
|
||||
var stdin = process.openStdin()
|
||||
, buff = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user