spcd_https_path

This commit is contained in:
Marc Beninca 2024-08-27 11:59:38 +02:00
parent e277ca114a
commit 0108ef7a7d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -785,6 +785,17 @@ spcd_clean_cache() {
esac esac
} }
spcd_https_path() {
case "${SPCD_PM}" in
"${SPCD_PM_DNF}") echo "/etc/dnf/dnf.conf.d/https.conf" ;;
"${SPCD_PM_APK}") echo "/etc/apk/repositories.d/https" ;;
"${SPCD_PM_PACMAN}") echo "/etc/pacman.d/https.conf" ;;
"${SPCD_PM_APT}") echo "/etc/apt/apt.conf.d/https" ;;
"${SPCD_PM_ZYPPER}") ;;
*) ;;
esac
}
spcd_install_package() { spcd_install_package() {
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") apk add "${1}" ;; "${SPCD_PM_APK}") apk add "${1}" ;;