fix(test): checks.sh: allow empty disabled array.

This commit is contained in:
Alexandre Pujol 2025-08-11 11:18:21 +02:00
parent eb642993d8
commit caee95ff9e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -42,7 +42,7 @@ _in_array() {
_is_enabled() {
local check="$1"
if _in_array "$check" "${WITH_CHECK[@]}"; then
if [[ ${#_check_is_disabled[@]} -eq 0 ]]; then
if [[ -z "${_check_is_disabled+x}" || ${#_check_is_disabled[@]} -eq 0 ]]; then
return 0
fi
if _in_array "$check" "${_check_is_disabled[@]}"; then