From ff21f824b5fd0cd2666a92f44f797946c205bc27 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Wed, 1 May 2024 08:58:50 +0200 Subject: [PATCH] [qtcreator] more env var fixes --- qtcreator/setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qtcreator/setup b/qtcreator/setup index e3d3608b7..abb592525 100644 --- a/qtcreator/setup +++ b/qtcreator/setup @@ -9,8 +9,12 @@ function qtcreator if [[ ! -v TUE_ENV_ROS_VERSION && -v TUE_ROS_VERSION ]] then TUE_ENV_ROS_VERSION=${TUE_ROS_VERSION} - >&2 echo "Change the config of your environment to use 'TUE_ENV_ROS_VERSION' instead of 'TUE_ROS_VERSION'" + >&2 echo -e "\e[33;1m[qtcreator] Change the config of your environment to use 'TUE_ENV_ROS_DISTRO' instead of 'TUE_ROS_DISTRO'.\e[0m" fi + +# TODO(anyone): remove when tue-env is updated to new variable names +[[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR} + if [[ "${TUE_ENV_ROS_VERSION}" -eq 1 ]] then # Make sure packages can be build by QT