spcd_pf_
This commit is contained in:
parent
37e6767612
commit
3586b1af67
1 changed files with 22 additions and 0 deletions
22
spcd.sh
22
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"
|
||||
|
|
Loading…
Reference in a new issue