step,write
Some checks failed
/ job (push) Failing after 6s

This commit is contained in:
Marc Beninca 2024-04-27 21:24:59 +02:00
parent 13c474f39a
commit 58739bd965
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

38
cd.sh
View file

@ -81,25 +81,6 @@ cd_set_environment () {
CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"
}
cd_step () {
if [ "${1}" ] ; then
CD_STEP=$((CD_STEP+1))
echo "
${CD_STEP} ${1}
"
fi
}
cd_write () {
local file="${1}"
local text="${2}"
if [ "${file}" ] ; then
echo -n "${text}" \
> "${file}" \
|| exit
fi
}
cd_set_dns_resolving () {
local server
local text=''
@ -249,4 +230,23 @@ cd_bootstrap () {
"${CD_PYTHON_COMMAND}" -m "${1}"
}
cd_step () {
if [ "${1}" ] ; then
CD_STEP=$((CD_STEP+1))
echo "
${CD_STEP} ${1}
"
fi
}
cd_write () {
local file="${1}"
local text="${2}"
if [ "${file}" ] ; then
echo -n "${text}" \
> "${file}" \
|| exit
fi
}
cd_main "${@}"