parent
13c474f39a
commit
58739bd965
1 changed files with 19 additions and 19 deletions
38
cd.sh
38
cd.sh
|
@ -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 "${@}"
|
||||
|
|
Loading…
Reference in a new issue