Skip to content

Commit e792dfa

Browse files
phoddieMichael Kellner
authored andcommitted
fix error check for -o option
1 parent f0f38ee commit e792dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/png2bmp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class extends TOOL {
9292
if (argi >= argc)
9393
throw new Error("-o: no directory!");
9494
name = argv[argi];
95-
if (this.outputDirectory)
95+
if (this.outputPath)
9696
throw new Error("-o '" + name + "': too many directories!");
9797
path = this.resolveDirectoryPath(name);
9898
if (!path)

0 commit comments

Comments
 (0)