spcd_os_ls

This commit is contained in:
Marc Beninca 2024-08-25 22:47:21 +02:00
parent da082a177e
commit d47ba3d4f9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -831,7 +831,7 @@ ${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
spcd_list_working_directory() { spcd_list_working_directory() {
spcd_step "List working directory" spcd_step "List working directory"
spcd_lwd__path="$(realpath .)" spcd_lwd__path="$(realpath .)"
spcd_ls "${spcd_lwd__path}" spcd_os_ls "${spcd_lwd__path}"
} }
# ╭───────┬─────╮ # ╭───────┬─────╮
@ -1040,7 +1040,7 @@ spcd_install_python_modules() {
spcd_step_in "Python modules" spcd_step_in "Python modules"
spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}" spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
spcd_step "List" spcd_step "List"
spcd_ls "${spcd_ipm__target}" spcd_os_ls "${spcd_ipm__target}"
spcd_step "Main" spcd_step "Main"
spcd_ipm__path="$(spcd_pip_install "${SPCD_GIT_MAIN}")" spcd_ipm__path="$(spcd_pip_install "${SPCD_GIT_MAIN}")"
# check matching of file and variable # check matching of file and variable
@ -1057,7 +1057,7 @@ spcd_install_python_modules() {
spcd_step "Root" spcd_step "Root"
spcd_pip_install "${SPCD_GIT_ROOT}" spcd_pip_install "${SPCD_GIT_ROOT}"
spcd_step "List" spcd_step "List"
spcd_ls "${spcd_ipm__target}" spcd_os_ls "${spcd_ipm__target}"
spcd_step_out spcd_step_out
} }
@ -1174,12 +1174,12 @@ spcd_ln_python() {
fi fi
} }
spcd_ls() { spcd_os_ls() {
spcd_ls__path="${1}" spcd_os_ls__path="${1}"
if [ -n "${spcd_ls__path}" ]; then if [ -n "${spcd_os_ls__path}" ]; then
spcd_frame_open "${spcd_ls__path}" spcd_frame_open "${spcd_os_ls__path}"
ls -a -l "${spcd_ls__path}" || exit ls -a -l "${spcd_os_ls__path}"
spcd_frame_shut "${spcd_ls__path}" spcd_frame_shut "${spcd_os_ls__path}"
fi fi
} }