image: don't check for file existence for -

This commit is contained in:
Starbeamrainbowlabs 2021-01-15 16:35:09 +00:00
parent 9e47a12b12
commit 125192ebfa
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export default async function(settings) {
process.exit(1);
}
if(!fs.existsSync(settings.cli.input)) {
if(settings.cli.input !== "-" && !fs.existsSync(settings.cli.input)) {
l.error(`Error: The specified input file '${settings.cli.input}' does not exist (check the spelling and permissions).`);
process.exit(1);
}