Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion convert.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
if (!$filePath) {
file_put_contents('php://stderr', 'Usage: php convert.php [-w] <file>' . "\n");
exit(1);
} elseif (!file_exists($filePath)) {
} elseif (!file_exists($filePath) && $filePath != 'php://stdin') {
file_put_contents('php://stderr', 'File "' . $filePath . '" not found.' . "\n");
exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion revert.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
if (!$filePath) {
file_put_contents('php://stderr', 'Usage: php revert.php [-w] <file>' . "\n");
exit(1);
} elseif (!file_exists($filePath)) {
} elseif (!file_exists($filePath) && $filePath != 'php://stdin') {
file_put_contents('php://stderr', 'File "' . $filePath . '" not found.' . "\n");
exit(1);
}
Expand Down