From de32d1ba2fadd075369b5c2022b0c961f6762e50 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 7 Sep 2024 10:45:07 +0200 Subject: [PATCH] pkg/clean --- spcd/bootstrap.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index c8a93e6..6456daa 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -794,17 +794,6 @@ spcd_step__environment_list_workspace() { # │ e = environment │ # ╰─────────────────╯ -spcd_clean_cache() { - case "${SPCD_PM}" in - "${SPCD_PM_APK}") spcd_eval apk cache purge ;; - "${SPCD_PM_APT}") spcd_eval apt-get clean ;; - "${SPCD_PM_DNF}") spcd_eval dnf clean all ;; - "${SPCD_PM_PACMAN}") spcd_eval pacman --sync --clean --noconfirm ;; - "${SPCD_PM_ZYPPER}") spcd_eval zypper clean ;; - *) ;; - esac -} - spcd_git_clone() { if [ -n "${1}" ]; then local name path url @@ -1004,6 +993,17 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET} # │ e │ packages │ # ╰───┴──────────╯ +spcd_clean_cache() { + case "${SPCD_PM}" in + "${SPCD_PM_APK}") spcd_eval apk cache purge ;; + "${SPCD_PM_APT}") spcd_eval apt-get clean ;; + "${SPCD_PM_DNF}") spcd_eval dnf clean all ;; + "${SPCD_PM_PACMAN}") spcd_eval pacman --sync --clean --noconfirm ;; + "${SPCD_PM_ZYPPER}") spcd_eval zypper clean ;; + *) ;; + esac +} + spcd_https_path() { case "${SPCD_PM}" in "${SPCD_PM_APK}") echo "/etc/apk/repositories.d/https" ;;