Making rosrun not look in "build" directory of package.

This commit is contained in:
Jeremy Leibs 2009-10-02 21:31:30 +00:00
parent 88804b4947
commit 8ffaaedba6
1 changed files with 1 additions and 1 deletions

View File

@ -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`)