From 2bd4c5b35eb39920fbc18dd17f7c8a0c8fe269f9 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 25 Sep 2024 09:50:37 +0200 Subject: [PATCH] print qt environment ids only when .qtcreator directory was created --- .templates/install_qtcreator.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.templates/install_qtcreator.sh b/.templates/install_qtcreator.sh index 51f7f0f..79f08de 100755 --- a/.templates/install_qtcreator.sh +++ b/.templates/install_qtcreator.sh @@ -42,9 +42,6 @@ if [ -z "$qtdefaultprofileid" ] ; then exit 5 fi -echo "Your QTCreator EnvironmentId is: $qtenvironmentid" -echo "Your QTCreator default profile id is: $qtdefaultprofileid" - # change / to \/ in paths CURRENT_DIR_FOR_SED=$(echo ${CURRENT_DIR} | sed 's/\//\\\//g') GLOBAL_WORKING_DIR_FOR_SED=$(echo ${GLOBAL_WORKING_DIR} | sed 's/\//\\\//g') @@ -54,6 +51,8 @@ was_qtcreator_dir=0 if [ -d "${QTCREATOR_DIR}" ] ; then was_qtcreator_dir=1 else + echo "Your QTCreator EnvironmentId is: $qtenvironmentid" + echo "Your QTCreator default profile id is: $qtdefaultprofileid" mkdir -p "${QTCREATOR_DIR}" fi