cd_error_os
This commit is contained in:
parent
efac9b8463
commit
82e2249bbf
1 changed files with 7 additions and 4 deletions
11
cd.sh
11
cd.sh
|
@ -47,7 +47,7 @@ local variable
|
|||
"debian")
|
||||
case "${CD_OS_VERSION}" in
|
||||
"bookworm"|"bullseye") cd_nop ;;
|
||||
*) cd_error_os "CD_OS_VERSION=${CD_OS_VERSION}" ;;
|
||||
*) cd_error_os "CD_OS_VERSION" ;;
|
||||
esac
|
||||
CD_PYTHON_PACKAGE="python3"
|
||||
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
||||
|
@ -59,11 +59,11 @@ local variable
|
|||
CD_PYTHON_PACKAGE="python3.11"
|
||||
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
|
||||
;;
|
||||
*) cd_error_os "CD_OS_VERSION=${CD_OS_VERSION}" ;;
|
||||
*) cd_error_os "CD_OS_VERSION" ;;
|
||||
esac
|
||||
CD_CA_ROOT="/etc/pki/ca-trust/source/anchors"
|
||||
;;
|
||||
*) cd_error_os "CD_OS_NAME=${CD_OS_NAME}" ;;
|
||||
*) cd_error_os "CD_OS_NAME" ;;
|
||||
esac
|
||||
# ci / github
|
||||
if [ "${GITHUB_ACTIONS}" ] ; then
|
||||
|
@ -317,8 +317,11 @@ cd_error_ci () {
|
|||
echo "× CI: ${1}"
|
||||
exit 1
|
||||
}
|
||||
|
||||
cd_error_os () {
|
||||
echo "× OS: ${1}"
|
||||
local variable="${1}"
|
||||
echo -n "× OS: "
|
||||
cd_echo "${variable}"
|
||||
exit 2
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue