13 lines
345 B
Bash
Executable File
13 lines
345 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
source "/opt/ros/${ROS_DISTRO}/setup.bash"
|
|
|
|
# A prior colcon build takes precedence over apt packages when the workspace
|
|
# is mounted. This makes source edits immediately available to ROS commands.
|
|
if [[ -f "${NAV2_WORKSPACE}/install/setup.bash" ]]; then
|
|
source "${NAV2_WORKSPACE}/install/setup.bash"
|
|
fi
|
|
|
|
exec "$@"
|