Skip to content

Commit

Permalink
Stop, drop, and no log - continued (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl authored Jul 22, 2024
1 parent a32f83d commit 35f2f3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ros/ros2/ros2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export class ROS2 implements ros.ROSApi {
env: this.env,
cwd: workspaceDir
};
const result = await promisifiedExec(`colcon list -p --base-paths "${workspaceDir}"`, opts);
const isWin = process.platform === "win32";
const nullPath = isWin ? "nul" : "/dev/null";
const result = await promisifiedExec(`colcon list -p --base-paths "${workspaceDir}" --log-base ${nullPath}`, opts);

// error out if we see anything from stderr.
if (result.stderr) {
Expand Down

0 comments on commit 35f2f3b

Please sign in to comment.