From d00a55bcd8ef95eb328591dd8d9bc58f0794077e Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 15 Feb 2024 19:37:54 +0000 Subject: [PATCH] chore(internal): refactor release environment script --- 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 730b7574..035f24a2 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -6,9 +6,9 @@ if [ -z "${NPM_TOKEN}" ]; then errors+=("The ORB_NPM_TOKEN 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