steps/functions

This commit is contained in:
Marc Beninca 2024-08-26 00:22:17 +02:00
parent 03cde379b7
commit a88c031ec3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -912,6 +912,18 @@ spcd_list_working_directory() {
spcd_os_ls "${spcd_lwd__path}"
}
# ╭───────┬───────────╮
# │ steps │ functions │
# ╰───────┴───────────╯
spcd_install_package() {
spcd_install_package__name="${1}"
if [ -n "${spcd_install_package__name}" ]; then
${SPCD_PM_INSTALL} "${spcd_install_package__name}"
${SPCD_PM_CLEAN}
fi
}
# ╭───────┬─────╮
# │ steps │ pkg │
# ╰───────┴─────╯
@ -1233,20 +1245,6 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
#╶──────────────────────────────────────╴
# ╭───────────╮
# │ functions │
# ╰───────────╯
spcd_install_package() {
spcd_install_package__name="${1}"
if [ -n "${spcd_install_package__name}" ]; then
${SPCD_PM_INSTALL} "${spcd_install_package__name}"
${SPCD_PM_CLEAN}
fi
}
#╶──────────────────────────────────────╴
# ╭──────╮
# │ main │
# ╰──────╯