From 3586b1af675420ccca995bd69e21dcc4736ef538 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 21 Aug 2024 13:52:38 +0200 Subject: [PATCH] spcd_pf_ --- spcd.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/spcd.sh b/spcd.sh index b954910..f726c96 100644 --- a/spcd.sh +++ b/spcd.sh @@ -265,6 +265,23 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")" ;; *) ;; esac + # set package format + case "${SPCD_PM}" in + "${SPCD_PM_APK}") + SPCD_PF="${SPCD_PF_APK}" + ;; + "${SPCD_PM_APT}") + SPCD_PF="${SPCD_PF_DEB}" + ;; + "${SPCD_PM_PACMAN}") + SPCD_PF="${SPCD_PF_PKG}" + ;; + "${SPCD_PM_DNF}" | "${SPCD_PM_ZYPPER}") + SPCD_PF="${SPCD_PF_RPM}" + ;; + *) ;; + esac + # set package manager variables spcd_split spcd_echo "SPCD_PM" case "${SPCD_PM}" in @@ -998,6 +1015,11 @@ SPCD_OS_OPENSUSE="opensuse" SPCD_OS_ROCKY="rocky" SPCD_OS_UBUNTU="ubuntu" +SPCD_PF_APK="apk" +SPCD_PF_DEB="deb" +SPCD_PF_PKG="pkg" +SPCD_PF_RPM="rpm" + SPCD_PM_APK="apk" SPCD_PM_APT="apt" SPCD_PM_DNF="dnf"