1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-29 08:02:59 +00:00

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

View file

@ -20,7 +20,7 @@ export default async function(settings) {
process.exit(1); 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).`); l.error(`Error: The specified input file '${settings.cli.input}' does not exist (check the spelling and permissions).`);
process.exit(1); process.exit(1);
} }