fixes #656 - casperjs can't open /dev/stdin
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -308,7 +308,7 @@ CasperError.prototype = Object.getPrototypeOf(new Error()); | ... | @@ -308,7 +308,7 @@ CasperError.prototype = Object.getPrototypeOf(new Error()); |
308 | phantom.casperScript = casperArgs.get(0); | 308 | phantom.casperScript = casperArgs.get(0); |
309 | } | 309 | } |
310 | 310 | ||
311 | if (!fs.isFile(phantom.casperScript)) { | 311 | if (phantom.casperScript !== "/dev/stdin" && !fs.isFile(phantom.casperScript)) { |
312 | return __die('Unable to open file: ' + phantom.casperScript); | 312 | return __die('Unable to open file: ' + phantom.casperScript); |
313 | } | 313 | } |
314 | 314 | ... | ... |
-
Please register or sign in to post a comment