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"