Commit 8638461d 8638461db7f47a30d7945affc2a6757ba11a6928 by Nicolas Perriault

fixes #656 - casperjs can't open /dev/stdin

1 parent 2945b4e3
...@@ -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
......