diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index b5bb636..71eb6be 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -837,18 +837,6 @@ spcd_https_path() { esac } -spcd_install_package() { - case "${SPCD_PM}" in - "${SPCD_PM_APK}") spcd_eval apk add "${1}" ;; - "${SPCD_PM_APT}") spcd_eval apt-get install --assume-yes "${1}" ;; - "${SPCD_PM_DNF}") spcd_eval dnf install --assumeyes "${1}" ;; - "${SPCD_PM_PACMAN}") spcd_eval pacman --sync --noconfirm "${1}" ;; - "${SPCD_PM_ZYPPER}") spcd_eval zypper --non-interactive install "${1}" ;; - *) ;; - esac - spcd_clean_cache -} - spcd_python_ln() { local command="${1}" if [ -n "${command}" ]; then @@ -1027,6 +1015,18 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET} # │ e │ packages │ # ╰───┴──────────╯ +spcd_install_package() { + case "${SPCD_PM}" in + "${SPCD_PM_APK}") spcd_eval apk add "${1}" ;; + "${SPCD_PM_APT}") spcd_eval apt-get install --assume-yes "${1}" ;; + "${SPCD_PM_DNF}") spcd_eval dnf install --assumeyes "${1}" ;; + "${SPCD_PM_PACMAN}") spcd_eval pacman --sync --noconfirm "${1}" ;; + "${SPCD_PM_ZYPPER}") spcd_eval zypper --non-interactive install "${1}" ;; + *) ;; + esac + spcd_clean_cache +} + spcd_query_package() { case "${SPCD_PM}" in "${SPCD_PM_APK}") apk info "${1}" ;;