From 6e939f50f1821399b9b3c77c2e2a5e8fa5da980a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 27 Apr 2024 01:37:18 +0200 Subject: [PATCH] project_name --- cd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cd.sh b/cd.sh index 97bae6b..a976282 100644 --- a/cd.sh +++ b/cd.sh @@ -27,8 +27,9 @@ case "${CD_OS_NAME}" in exit 1 ;; esac -# -[ "${CI_PROJECT_NAME}" ] && CD_PROJECT_NAME="${CI_PROJECT_NAME}" +# project / name +[ "${CI_PROJECT_PATH}" ] \ +&& CD_PROJECT_NAME="$(basename "${CI_PROJECT_PATH}")" [ "${GITHUB_REPOSITORY}" ] \ && CD_PROJECT_NAME="$(basename "${GITHUB_REPOSITORY}")" if [ "${CD_PROJECT_NAME}" ] ; then