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" ;;