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());
phantom.casperScript = casperArgs.get(0);
}
if (!fs.isFile(phantom.casperScript)) {
if (phantom.casperScript !== "/dev/stdin" && !fs.isFile(phantom.casperScript)) {
return __die('Unable to open file: ' + phantom.casperScript);
}
......