bugfix zsh roscp and rosed not working
This commit is contained in:
parent
8a79216ae3
commit
b6256ad0b5
|
@ -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
|
||||
|
|
|
@ -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]"
|
||||
|
|
Loading…
Reference in New Issue