opensuse/id
This commit is contained in:
parent
d8404734fd
commit
3078a46bfb
1 changed files with 10 additions and 1 deletions
11
spcd.sh
11
spcd.sh
|
@ -142,6 +142,7 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
|
||||||
"arch") SPCD_OS_ID="${SPCD_OS_ARCH}" ;;
|
"arch") SPCD_OS_ID="${SPCD_OS_ARCH}" ;;
|
||||||
"debian") SPCD_OS_ID="${SPCD_OS_DEBIAN}" ;;
|
"debian") SPCD_OS_ID="${SPCD_OS_DEBIAN}" ;;
|
||||||
"fedora") SPCD_OS_ID="${SPCD_OS_FEDORA}" ;;
|
"fedora") SPCD_OS_ID="${SPCD_OS_FEDORA}" ;;
|
||||||
|
"opensuse-leap") SPCD_OS_ID="${SPCD_OS_OPENSUSE}" ;;
|
||||||
"rocky") SPCD_OS_ID="${SPCD_OS_ROCKY}" ;;
|
"rocky") SPCD_OS_ID="${SPCD_OS_ROCKY}" ;;
|
||||||
"ubuntu") SPCD_OS_ID="${SPCD_OS_UBUNTU}" ;;
|
"ubuntu") SPCD_OS_ID="${SPCD_OS_UBUNTU}" ;;
|
||||||
*) spcd_error_os "SPCD_OS_ID" ;;
|
*) 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 |
|
SPCD_OS_VERSION=$(spcd_grep_os VERSION_ID |
|
||||||
sed "s|^\([0-9]\+\)\..*|\1|")
|
sed "s|^\([0-9]\+\)\..*|\1|")
|
||||||
;;
|
;;
|
||||||
"${SPCD_OS_ALPINE}")
|
"${SPCD_OS_ALPINE}" | "${SPCD_OS_OPENSUSE}")
|
||||||
SPCD_OS_VERSION=$(spcd_grep_os VERSION_ID |
|
SPCD_OS_VERSION=$(spcd_grep_os VERSION_ID |
|
||||||
sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|")
|
sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|")
|
||||||
;;
|
;;
|
||||||
|
@ -194,6 +195,12 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
|
||||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
"${SPCD_OS_OPENSUSE}")
|
||||||
|
case "${SPCD_OS_VERSION}" in
|
||||||
|
"15.6" | "15.5") ;;
|
||||||
|
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
"${SPCD_OS_UBUNTU}")
|
"${SPCD_OS_UBUNTU}")
|
||||||
case "${SPCD_OS_VERSION}" in
|
case "${SPCD_OS_VERSION}" in
|
||||||
"noble" | "jammy") ;;
|
"noble" | "jammy") ;;
|
||||||
|
@ -910,6 +917,7 @@ SPCD_OS_ALPINE="alpine"
|
||||||
SPCD_OS_ARCH="arch"
|
SPCD_OS_ARCH="arch"
|
||||||
SPCD_OS_DEBIAN="debian"
|
SPCD_OS_DEBIAN="debian"
|
||||||
SPCD_OS_FEDORA="fedora"
|
SPCD_OS_FEDORA="fedora"
|
||||||
|
SPCD_OS_OPENSUSE="opensuse"
|
||||||
SPCD_OS_ROCKY="rocky"
|
SPCD_OS_ROCKY="rocky"
|
||||||
SPCD_OS_UBUNTU="ubuntu"
|
SPCD_OS_UBUNTU="ubuntu"
|
||||||
|
|
||||||
|
@ -917,6 +925,7 @@ SPCD_PM_APK="apk"
|
||||||
SPCD_PM_APT="apt"
|
SPCD_PM_APT="apt"
|
||||||
SPCD_PM_DNF="dnf"
|
SPCD_PM_DNF="dnf"
|
||||||
SPCD_PM_PACMAN="pacman"
|
SPCD_PM_PACMAN="pacman"
|
||||||
|
SPCD_PM_ZYPPER="zypper"
|
||||||
|
|
||||||
SPCD_PYTHON_VENV="/opt/venv"
|
SPCD_PYTHON_VENV="/opt/venv"
|
||||||
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
|
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
|
||||||
|
|
Loading…
Reference in a new issue