parent
839f6eea14
commit
6e939f50f1
1 changed files with 3 additions and 2 deletions
5
cd.sh
5
cd.sh
|
@ -27,8 +27,9 @@ case "${CD_OS_NAME}" in
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
# project / name
|
||||||
[ "${CI_PROJECT_NAME}" ] && CD_PROJECT_NAME="${CI_PROJECT_NAME}"
|
[ "${CI_PROJECT_PATH}" ] \
|
||||||
|
&& CD_PROJECT_NAME="$(basename "${CI_PROJECT_PATH}")"
|
||||||
[ "${GITHUB_REPOSITORY}" ] \
|
[ "${GITHUB_REPOSITORY}" ] \
|
||||||
&& CD_PROJECT_NAME="$(basename "${GITHUB_REPOSITORY}")"
|
&& CD_PROJECT_NAME="$(basename "${GITHUB_REPOSITORY}")"
|
||||||
if [ "${CD_PROJECT_NAME}" ] ; then
|
if [ "${CD_PROJECT_NAME}" ] ; then
|
||||||
|
|
Loading…
Reference in a new issue