From 5a192e1d704724e5a5ee4c01e87d7fdc09ff4f27 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:37:30 -0500 Subject: [PATCH] chore(internal): refactor release environment script (#147) --- bin/check-release-environment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/check-release-environment b/bin/check-release-environment index d24b3ab2..5e7c517a 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -18,9 +18,9 @@ if [ -z "${GPG_SIGNING_PASSWORD}" ]; then errors+=("The FINCH_SONATYPE_GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets") fi -len=${#errors[@]} +lenErrors=${#errors[@]} -if [[ len -gt 0 ]]; then +if [[ lenErrors -gt 0 ]]; then echo -e "Found the following errors in the release environment:\n" for error in "${errors[@]}"; do