sections
This commit is contained in:
parent
4dbf04fb10
commit
f51e89ee79
1 changed files with 5 additions and 4 deletions
9
cd.sh
9
cd.sh
|
@ -1,7 +1,9 @@
|
|||
#! /usr/bin/env sh
|
||||
|
||||
# modules
|
||||
set "cd" "rwx"
|
||||
|
||||
# steps
|
||||
cd_main () {
|
||||
cd_set_environment
|
||||
cd_set_dns_resolving \
|
||||
|
@ -24,7 +26,7 @@ cd_main () {
|
|||
cd_execute_python_module "${@}"
|
||||
}
|
||||
|
||||
#
|
||||
# functions
|
||||
|
||||
cd_set_environment () {
|
||||
cd_step "Set environment"
|
||||
|
@ -270,7 +272,7 @@ ${1}
|
|||
"${CD_PYTHON_COMMAND}" -m "${1}" "${CD_STEP}" "${self}"
|
||||
}
|
||||
|
||||
#
|
||||
# tools
|
||||
|
||||
cd_cat () {
|
||||
if [ -f "${1}" ] ; then
|
||||
|
@ -325,6 +327,5 @@ local text="${2}"
|
|||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
# main
|
||||
cd_main "${@}"
|
||||
|
|
Loading…
Reference in a new issue