From 8f941c8284f229ca0a5ac5d1d8b8ee7261ee8642 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 20:53:58 +0200 Subject: [PATCH] module --- cd.sh | 4 ++-- cd/__main__.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 cd/__main__.py diff --git a/cd.sh b/cd.sh index 70a9781..69afca8 100644 --- a/cd.sh +++ b/cd.sh @@ -10,6 +10,7 @@ CD_REPOSITORY_NAME='cd' CD_DNS_FILE='/etc/resolv.conf' case "${CD_OS_NAME}" in 'debian') + CD_PYTHON_COMMAND='python3' CD_PYTHON_PACKAGES='/usr/lib/python3/dist-packages' case "${CD_OS_VERSION}" in 'bookworm') @@ -197,13 +198,12 @@ local root cp --recursive --verbose \ "${root}/${repository}" "${CD_PYTHON_PACKAGES}" \ || exit - # TODO commands done } function cd_bootstrap { cd_step "${FUNCNAME}" - cd-bootstrap + "${CD_PYTHON_COMMAND}" -m "${CD_REPOSITORY_NAME}" } function cd_main { diff --git a/cd/__main__.py b/cd/__main__.py new file mode 100644 index 0000000..a840bb6 --- /dev/null +++ b/cd/__main__.py @@ -0,0 +1 @@ +print('TODO bootstrap')