Skip to content

Commit

Permalink
[ros1] better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed May 1, 2024
1 parent 807d858 commit e2dd246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros1/setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
if [[ ! -v TUE_ENV_ROS_DISTRO && -v TUE_ROS_DISTRO ]]
then
TUE_ENV_ROS_DISTRO=${TUE_ROS_DISTRO}
>&2 echo "Change the config of your environment to use 'TUE_ENV_ROS_DISTRO' instead of 'TUE_ROS_DISTRO'"
>&2 echo -e "\e[33;1m[ros1] Change the config of your environment to use 'TUE_ENV_ROS_DISTRO' instead of 'TUE_ROS_DISTRO'.\e[0m"
fi
if [[ -z "${TUE_ENV_ROS_DISTRO}" ]]
then
echo -e "\e[31;1m[ros] TUE_ENV_ROS_DISTRO was not set\e[0m"
>&2 echo -e "\e[31;1m[ros] TUE_ENV_ROS_DISTRO was not set.\e[0m"
return 1
fi

Expand All @@ -20,7 +20,7 @@ then
# shellcheck disable=SC1091
source "${TUE_ENV_WS_DIR}"/devel/setup.bash
else
echo -e "\e[33;1m[ros] system workspaces not found, sourcing /opt/ros\e[0m"
>&2 echo -e "\e[33;1m[ros] system workspaces not found, sourcing /opt/ros\e[0m"
# shellcheck disable=SC1090
source /opt/ros/"${TUE_ENV_ROS_DISTRO}"/setup.bash
fi
Expand Down

0 comments on commit e2dd246

Please sign in to comment.