print qt environment ids only when .qtcreator directory was created

This commit is contained in:
2024-09-25 09:50:37 +02:00
parent f4481a84f4
commit 2bd4c5b35e

View File

@@ -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