Skip to content

Commit

Permalink
Fix Serverless v4 check in run script (#12030)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonHolman authored Jan 30, 2025
1 parent 10ea1dc commit 696edad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ if ! which yarn > /dev/null ; then
fi

# check serverless is installed globally.
if ! which serverless > /dev/null || [[ "$(serverless --version | cut -d'.' -f1)" != "4" ]]; then
if ! which serverless > /dev/null || ! serverless --version 2>&1 | grep -q " 4."; then
echo "installing serverless v4 globally"
yarn global add [email protected]
export PATH="$PATH:$(yarn global bin)"
fi

# have to ensure that yarn install is up to date.
Expand Down

0 comments on commit 696edad

Please sign in to comment.