fix(test): checks.sh: allow empty disabled array.
This commit is contained in:
parent
eb642993d8
commit
caee95ff9e
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ _in_array() {
|
||||||
_is_enabled() {
|
_is_enabled() {
|
||||||
local check="$1"
|
local check="$1"
|
||||||
if _in_array "$check" "${WITH_CHECK[@]}"; then
|
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
|
return 0
|
||||||
fi
|
fi
|
||||||
if _in_array "$check" "${_check_is_disabled[@]}"; then
|
if _in_array "$check" "${_check_is_disabled[@]}"; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue