opensuse/id

This commit is contained in:
Marc Beninca 2024-08-20 08:27:15 +02:00
parent d8404734fd
commit 3078a46bfb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

11
spcd.sh
View file

@ -142,6 +142,7 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
"arch") SPCD_OS_ID="${SPCD_OS_ARCH}" ;;
"debian") SPCD_OS_ID="${SPCD_OS_DEBIAN}" ;;
"fedora") SPCD_OS_ID="${SPCD_OS_FEDORA}" ;;
"opensuse-leap") SPCD_OS_ID="${SPCD_OS_OPENSUSE}" ;;
"rocky") SPCD_OS_ID="${SPCD_OS_ROCKY}" ;;
"ubuntu") SPCD_OS_ID="${SPCD_OS_UBUNTU}" ;;
*) spcd_error_os "SPCD_OS_ID" ;;
@ -153,7 +154,7 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
SPCD_OS_VERSION=$(spcd_grep_os VERSION_ID |
sed "s|^\([0-9]\+\)\..*|\1|")
;;
"${SPCD_OS_ALPINE}")
"${SPCD_OS_ALPINE}" | "${SPCD_OS_OPENSUSE}")
SPCD_OS_VERSION=$(spcd_grep_os VERSION_ID |
sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|")
;;
@ -194,6 +195,12 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
*) spcd_error_os "SPCD_OS_VERSION" ;;
esac
;;
"${SPCD_OS_OPENSUSE}")
case "${SPCD_OS_VERSION}" in
"15.6" | "15.5") ;;
*) spcd_error_os "SPCD_OS_VERSION" ;;
esac
;;
"${SPCD_OS_UBUNTU}")
case "${SPCD_OS_VERSION}" in
"noble" | "jammy") ;;
@ -910,6 +917,7 @@ SPCD_OS_ALPINE="alpine"
SPCD_OS_ARCH="arch"
SPCD_OS_DEBIAN="debian"
SPCD_OS_FEDORA="fedora"
SPCD_OS_OPENSUSE="opensuse"
SPCD_OS_ROCKY="rocky"
SPCD_OS_UBUNTU="ubuntu"
@ -917,6 +925,7 @@ SPCD_PM_APK="apk"
SPCD_PM_APT="apt"
SPCD_PM_DNF="dnf"
SPCD_PM_PACMAN="pacman"
SPCD_PM_ZYPPER="zypper"
SPCD_PYTHON_VENV="/opt/venv"
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"