Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Rename output to buildDir
Browse files Browse the repository at this point in the history
  • Loading branch information
hlovdal authored and adiazulay committed Jan 19, 2021
1 parent 335d80a commit 0b2b77a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/arduino/arduino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class ArduinoApp {
});
}

public async verify(buildMode: BuildMode, output: string = "") {
public async verify(buildMode: BuildMode, buildDir: string = "") {
const dc = DeviceContext.getInstance();
const args: string[] = [];
const boardDescriptor = this.getBoardBuildString();
Expand Down Expand Up @@ -322,8 +322,8 @@ export class ArduinoApp {
return false;
}

if (output || dc.output) {
const outputPath = path.resolve(ArduinoWorkspace.rootPath, output || dc.output);
if (buildDir || dc.output) {
const outputPath = path.resolve(ArduinoWorkspace.rootPath, buildDir || dc.output);
const dirPath = path.dirname(outputPath);
if (!util.directoryExistsSync(dirPath)) {
logger.notifyUserError("InvalidOutPutPath", new Error(constants.messages.INVALID_OUTPUT_PATH + outputPath));
Expand Down

0 comments on commit 0b2b77a

Please sign in to comment.