diff --git a/scripts/dev/start-ros-receiver.sh b/scripts/dev/start-ros-receiver.sh index 449432d..2c17850 100755 --- a/scripts/dev/start-ros-receiver.sh +++ b/scripts/dev/start-ros-receiver.sh @@ -2,14 +2,20 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +source_with_nounset_off() { + set +u + # shellcheck disable=SC1090 + source "$1" + set -u +} + # shellcheck disable=SC1091 source "${SCRIPT_DIR}/load-env.sh" -# shellcheck disable=SC1091 -source "/opt/ros/${ROS_DISTRO}/setup.bash" +source_with_nounset_off "/opt/ros/${ROS_DISTRO}/setup.bash" cd "${ROS_CONTROL_PY_DIR}" -# shellcheck disable=SC1091 -source "install/setup.bash" +source_with_nounset_off "install/setup.bash" exec ros2 launch udp_teleop_bridge robot_udp_receiver.launch.py \ "transport:=${ROBOT_RECEIVER_TRANSPORT}" \