parent
260c86bf92
commit
5d2f6dbf7f
1 changed files with 13 additions and 9 deletions
22
cd.sh
22
cd.sh
|
@ -152,15 +152,6 @@ cd_install_packages_tools () {
|
|||
esac
|
||||
}
|
||||
|
||||
cd_install_package () {
|
||||
if [ "${1}" ] ; then
|
||||
case "${CD_OS_NAME}" in
|
||||
'debian') apt-get install --yes "${1}" || exit ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
cd_install_ca () {
|
||||
cd_step "${FUNCNAME}"
|
||||
case "${CD_OS_NAME}" in
|
||||
|
@ -230,6 +221,17 @@ cd_bootstrap () {
|
|||
"${CD_PYTHON_COMMAND}" -m "${1}"
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
cd_install_package () {
|
||||
if [ "${1}" ] ; then
|
||||
case "${CD_OS_NAME}" in
|
||||
'debian') apt-get install --yes "${1}" || exit ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
cd_step () {
|
||||
if [ "${1}" ] ; then
|
||||
CD_STEP=$((CD_STEP+1))
|
||||
|
@ -249,4 +251,6 @@ local text="${2}"
|
|||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
cd_main "${@}"
|
||||
|
|
Loading…
Reference in a new issue