change invalid return to exit, #3893

This commit is contained in:
Brian Gerkey 2012-03-13 14:59:17 +00:00
parent 466f9b7fe7
commit 8397bbc79d
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if [[ -n $CATKIN_BINARY_DIR && -f $CATKIN_BINARY_DIR/etc/packages.list ]]; then
fi
pkgdir=`rospack find $1`
if [[ -z $catkin_source_dir && -z $catkin_binary_dir && -z $pkgdir ]]; then
return 2
exit 2
fi
if [[ ! $2 == */* ]]; then
# The -perm /mode usage is not available in find on the Mac