From 8ffaaedba61f4a0d916082837cf37cdeee7ccf9f Mon Sep 17 00:00:00 2001 From: Jeremy Leibs Date: Fri, 2 Oct 2009 21:31:30 +0000 Subject: [PATCH] Making rosrun not look in "build" directory of package. --- bin/rosrun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rosrun b/bin/rosrun index 7a6d968a..0eeda26e 100755 --- a/bin/rosrun +++ b/bin/rosrun @@ -9,7 +9,7 @@ fi pkgdir=`${ROS_ROOT}/bin/rospack find $1` || exit 2 # The -perm /mode usage is not available in find on the Mac #exepathlist=(`find $pkgdir -name $2 -type f -perm /u+x,g+x,o+x`) -exepathlist=(`find $pkgdir -name $2 -type f -perm +111`) +exepathlist=(`find $pkgdir -name $2 -type f -perm +111 ! -regex .*$pkgdir\/build\/.*`) if [[ ${#exepathlist[@]} == 0 ]] ; then echo "[rosrun] Couldn't find executable named $2 below $pkgdir" nonexepathlist=(`find $pkgdir -name $2`)