bugfix zsh roscp and rosed not working

This commit is contained in:
Thibault Kruse 2012-03-19 01:46:42 +00:00
parent 8a79216ae3
commit b6256ad0b5
2 changed files with 3 additions and 1 deletions

View File

@ -217,6 +217,7 @@ function rosls {
ls ${rosvals[1]}${rosvals[2]}${rosvals[3]} $2
}
# sets arg as return value
function _roscmd {
local pkgdir exepath opt catkin_source_dir catkin_binary_dir opts
if [[ -n $CATKIN_SOURCE_DIR ]]; then

View File

@ -207,8 +207,9 @@ function rosls {
ls ${rosvals[2]}${rosvals[3]}${rosvals[4]} $2
}
# sets arg as return value
function _roscmd {
local pkgdir exepath opt arg
local pkgdir exepath opt
pkgdir=`export ROS_CACHE_TIMEOUT=-1.0 && rospack find $1 2> /dev/null`
if [[ $? != 0 ]] ; then
echo "Couldn't find package [$1]"