From 420f96c7675f3bd6a66ae360dfda32e6e8de8d95 Mon Sep 17 00:00:00 2001 From: xavi Date: Thu, 18 Apr 2024 11:27:32 +0200 Subject: [PATCH] fix: only check for yarn --- scripts/validate-openapi/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/validate-openapi/run.sh b/scripts/validate-openapi/run.sh index 39add94..db9674b 100755 --- a/scripts/validate-openapi/run.sh +++ b/scripts/validate-openapi/run.sh @@ -26,9 +26,9 @@ if [ $MODIFIED_API -eq 0 ]; then exit 0 fi -if ! command -v "yarn run redocly" &> /dev/null +if ! command -v "yarn" &> /dev/null then - echo "::error:: Unable to find redocly. Are you using npm? yarn? something? do you speak javascript?" + echo "::error:: Unable to find yarn. Are you using yarn? do you speak javascript?" exit 1 fi