Skip to content

Commit

Permalink
Adjust sourcing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lFatality committed Dec 1, 2020
1 parent 5b823b7 commit abedb2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions source_bridge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ else
echo -e "ERROR: Couldn't source local ROS2 workspace, build it first!"
fi

echo "Sourcing bridge_ws"
SETUPPATHBRIDGE="${SCRIPTPATH}/bridge_ws/install/setup.bash"
if [ -f ${SETUPPATHBRIDGE} ]; then
source ${SETUPPATHBRIDGE}
else
echo "Could not source bridge_ws. This is ok if you didn't build it yet. Just run this script again afterwards."
fi

2 changes: 1 addition & 1 deletion source_ros1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ SETUPPATH="${SCRIPTPATH}/ros1ws/devel/setup.bash"
if [ -f ${SETUPPATH} ]; then
source ${SETUPPATH}
else
echo -e "ERROR: Couldn't source local ROS1 workspace, build it first!"
echo "Couldn't source local ROS1 workspace, build it first!"
fi
2 changes: 1 addition & 1 deletion source_ros2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ SETUPPATH="${SCRIPTPATH}/ros2ws/install/setup.bash"
if [ -f ${SETUPPATH} ]; then
source ${SETUPPATH}
else
echo -e "ERROR: Couldn't source local ROS2 workspace, build it first!"
echo "Couldn't source local ROS2 workspace, build it first!"
fi

0 comments on commit abedb2c

Please sign in to comment.