Skip to content

Commit

Permalink
Executable search now follows symbolic links (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightduck authored Oct 19, 2020
1 parent b155b51 commit fd897fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ros/ros1/ros1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class ROS1 implements ros.ROSApi {
return this._findPackageFiles(packageName, `--libexec`, `*.exe`);
} else {
const dirs = `catkin_find --without-underlays --libexec --share '${packageName}'`;
command = `find $(${dirs}) -type f -executable`;
command = `find -L $(${dirs}) -type f -executable`;
return new Promise((c, e) => child_process.exec(command, { env: this.env }, (err, out) =>
err ? e(err) : c(out.trim().split(os.EOL)),
));
Expand All @@ -118,7 +118,7 @@ export class ROS1 implements ros.ROSApi {
return this._findPackageFiles(packageName, `--share`, `*.launch`);
} else {
const dirs = `catkin_find --without-underlays --share '${packageName}'`;
command = `find $(${dirs}) -type f -name *.launch`;
command = `find -L $(${dirs}) -type f -name *.launch`;
}

return new Promise((c, e) => child_process.exec(command, { env: this.env }, (err, out) => {
Expand Down

0 comments on commit fd897fd

Please sign in to comment.