From fd897fdce0482773e25511165cbf12a46a151f51 Mon Sep 17 00:00:00 2001 From: Oren Bell Date: Mon, 19 Oct 2020 16:51:02 -0500 Subject: [PATCH] Executable search now follows symbolic links (#321) --- src/ros/ros1/ros1.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ros/ros1/ros1.ts b/src/ros/ros1/ros1.ts index 64c671c7..f8a66b41 100644 --- a/src/ros/ros1/ros1.ts +++ b/src/ros/ros1/ros1.ts @@ -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)), )); @@ -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) => {