parent
ed39bce697
commit
cd2b4c2f86
2 changed files with 15 additions and 15 deletions
12
spcd.sh
12
spcd.sh
|
@ -94,37 +94,37 @@ spcd_set_environment_variables() {
|
|||
case "${SPCD_OS_ID}" in
|
||||
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"8" | "9") ;;
|
||||
"9" | "8") ;;
|
||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||
esac
|
||||
;;
|
||||
"${SPCD_OS_ALPINE}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"3.18" | "3.19") ;;
|
||||
"3.20" | "3.19") ;;
|
||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||
esac
|
||||
;;
|
||||
"${SPCD_OS_ARCH}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"20231112" | "20240101") ;;
|
||||
"20240101" | "20231112") ;;
|
||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||
esac
|
||||
;;
|
||||
"${SPCD_OS_DEBIAN}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"bookworm" | "bullseye") ;;
|
||||
"bullseye" | "bookworm") ;;
|
||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||
esac
|
||||
;;
|
||||
"${SPCD_OS_FEDORA}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"39" | "40") ;;
|
||||
"40" | "39") ;;
|
||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||
esac
|
||||
;;
|
||||
"${SPCD_OS_UBUNTU}")
|
||||
case "${SPCD_OS_VERSION}" in
|
||||
"jammy" | "noble") ;;
|
||||
"noble" | "jammy") ;;
|
||||
*) spcd_error_os "SPCD_OS_VERSION" ;;
|
||||
esac
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue