This commit is contained in:
Marc Beninca 2024-04-29 12:43:22 +02:00
parent 4dbf04fb10
commit f51e89ee79
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -1,7 +1,9 @@
#! /usr/bin/env sh #! /usr/bin/env sh
# modules
set "cd" "rwx" set "cd" "rwx"
# steps
cd_main () { cd_main () {
cd_set_environment cd_set_environment
cd_set_dns_resolving \ cd_set_dns_resolving \
@ -24,7 +26,7 @@ cd_main () {
cd_execute_python_module "${@}" cd_execute_python_module "${@}"
} }
# # functions
cd_set_environment () { cd_set_environment () {
cd_step "Set environment" cd_step "Set environment"
@ -270,7 +272,7 @@ ${1}
"${CD_PYTHON_COMMAND}" -m "${1}" "${CD_STEP}" "${self}" "${CD_PYTHON_COMMAND}" -m "${1}" "${CD_STEP}" "${self}"
} }
# # tools
cd_cat () { cd_cat () {
if [ -f "${1}" ] ; then if [ -f "${1}" ] ; then
@ -325,6 +327,5 @@ local text="${2}"
fi fi
} }
# # main
cd_main "${@}" cd_main "${@}"