This commit is contained in:
Marc Beninca 2024-05-03 14:11:52 +02:00
parent 210768479c
commit 103b8f86e8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

7
cd.sh
View file

@ -326,14 +326,14 @@ local name
cd_error_ci () {
echo "× CI: ${1}"
exit 1
exit ${CD_ERROR_CI}
}
cd_error_os () {
local variable="${1}"
echo -n "× OS: "
cd_echo "${variable}"
exit 2
exit ${CD_ERROR_OS}
}
cd_grep_os () {
@ -410,6 +410,9 @@ local text="${2}"
# constants
CD_ERROR_CI=2
CD_ERROR_OS=1
CD_OS_ALMA="alma"
CD_OS_DEBIAN="debian"