Making rosrun not look in "build" directory of package.
This commit is contained in:
parent
88804b4947
commit
8ffaaedba6
|
@ -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`)
|
||||
|
|
Loading…
Reference in New Issue