pkg/clean
This commit is contained in:
parent
217f1a1b73
commit
de32d1ba2f
1 changed files with 11 additions and 11 deletions
|
@ -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" ;;
|
||||
|
|
Loading…
Reference in a new issue