diff --git a/src/cli/OutputGTFSCommand.ts b/src/cli/OutputGTFSCommand.ts index 140f036b..500cff33 100644 --- a/src/cli/OutputGTFSCommand.ts +++ b/src/cli/OutputGTFSCommand.ts @@ -68,7 +68,7 @@ export class OutputGTFSCommand implements CLICommand { */ private async copy(results: object[] | Promise, filename: string): Promise { const rows = await results; - const output = this.output.open(`${this.baseDir}/filename`); + const output = this.output.open(`${this.baseDir}/${filename}`); console.log("Writing " + filename); rows.forEach(row => output.write(row));