From 103b8f86e8ff999a1bfcedfe3643ccc400c8221c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 3 May 2024 14:11:52 +0200 Subject: [PATCH] errors --- cd.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cd.sh b/cd.sh index 5f31937..620e659 100644 --- a/cd.sh +++ b/cd.sh @@ -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"