Skip to content

Commit 8b8068d

Browse files
committed
fix issue in script.sh (set -u/+u)
1 parent 9d3781c commit 8b8068d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ci/script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,18 @@ run_python_core_tests() {
6262

6363
run_python_ros2_tests() {
6464
export PYTHONPATH=.
65+
set +u
6566
if [ -n "${ROS_DISTRO:-}" ] && [ -f "/opt/ros/${ROS_DISTRO}/setup.bash" ]; then
6667
# setup-ros installs the ROS underlay but does not source it for our shell
6768
source "/opt/ros/${ROS_DISTRO}/setup.bash"
6869
elif [ -f "/opt/ros/jazzy/setup.bash" ]; then
6970
source "/opt/ros/jazzy/setup.bash"
7071
else
72+
set -u
7173
echo "ROS2 environment setup script not found"
7274
exit 1
7375
fi
76+
set -u
7477

7578
command -v ros2 >/dev/null
7679
command -v colcon >/dev/null

0 commit comments

Comments
 (0)