Skip to content

Commit

Permalink
avoid ROS_PEPPER_CI: unbound variable error
Browse files Browse the repository at this point in the history
build_ros1_dependencies.sh fails becuase of unset bariable.
This change set empty ROS_PEPPER_CI if it is not defiend by user

$ ./build_ros1_dependencies.sh
./build_ros1_dependencies.sh: line 34: ROS_PEPPER_CI: unbound variable
  • Loading branch information
k-okada committed Apr 27, 2022
1 parent d9108bb commit 08d4a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_ros1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ cp repos/pepper_ros1.repos pepper_ros1_ws/
cp ctc-cmake-toolchain.cmake pepper_ros1_ws/
cp cmake/eigen3-config.cmake pepper_ros1_ws/cmake/

ROS_PEPPER_CI=${ROS_PEPPER_CI:=}
USE_TTY=""
if [ -z "$ROS_PEPPER_CI" ]; then
USE_TTY="-it"
Expand Down
1 change: 1 addition & 0 deletions build_ros1_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ mkdir -p ${INSTALL_ROOT}/ros1_dependencies
mkdir -p ros1_dependencies_sources/src
cp repos/ros1_dependencies.repos ros1_dependencies_sources/

ROS_PEPPER_CI=${ROS_PEPPER_CI:=}
USE_TTY=""
if [ -z "$ROS_PEPPER_CI" ]; then
USE_TTY="-it"
Expand Down

0 comments on commit 08d4a10

Please sign in to comment.