Skip to content

Commit

Permalink
fix: only check for yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
xespona committed Apr 18, 2024
1 parent 80609fd commit 420f96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/validate-openapi/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 420f96c

Please sign in to comment.