Skip to content

Commit

Permalink
[noetic] Avoid infinite recursion in rosrun tab completion when rosba…
Browse files Browse the repository at this point in the history
…sh is not installed (#1948)

* Avoid infinite recursion

This avoids infinite recusion that happens if tab completion is
attempted but rosbash is not installed.

Signed-off-by: Shane Loretz<sloretz@openrobotics.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

* remove empty line

Co-authored-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
sloretz and dirk-thomas committed May 13, 2020
1 parent c7f7598 commit 4e01018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/topic_tools/env-hooks/20.transform.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function _roscomplete_rosrun_transform
{
if is_transform_node; then
_roscomplete_node_transform
else
elif [[ "$_sav_transform_roscomplete_rosrun" != "_roscomplete_rosrun_transform" ]]; then
eval "$_sav_transform_roscomplete_rosrun"
fi
}
Expand Down

0 comments on commit 4e01018

Please sign in to comment.