Skip to content

Commit

Permalink
fix: installing latest version of pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 30, 2024
1 parent c08d190 commit 58132ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ download_and_install() {
arch="$(detect_arch)" || abort "Sorry! pnpm currently only provides pre-built binaries for x86_64/arm64 architectures."
if [ -z "${PNPM_VERSION}" ]; then
version_json="$(download "https://registry.npmjs.org/@pnpm/exe")" || abort "Download Error!"
version="$(printf '%s' "${version_json}" | tr '{' '\n' | awk -F '"' '/latest/ { print $4 }')"
version="$(echo "$version_json" | grep -o '"latest":[[:space:]]*"[0-9.]*"' | grep -o '[0-9.]*')"
else
version="${PNPM_VERSION}"
fi
Expand Down

0 comments on commit 58132ca

Please sign in to comment.