Skip to content

Commit

Permalink
Revert "get latest pnpm version from GitHub releases"
Browse files Browse the repository at this point in the history
This reverts commit 027519f.
  • Loading branch information
zkochan committed Dec 15, 2023
1 parent 2a5e399 commit 1bf43f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SHASUMS256.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ d6e6538b8fa1147a58efac1ed2bf7f3311aecd5d8e1b11c0070794a5c5b151d8 v6.6.js
c80817f1dac65ee497fc8ca0b533e497aacfbf951a917ff4652825710bbacda7 v6.14.js
675896fe510fe86a6c4812c46334aafe789a05dd60652cca768b78971ca2b906 v6.16.js
be155eed896aa8c7900352c2b28640bcbace13171ec632b0e29f0ac94e5b27d1 v6.32.js
89d38e03ff1a3ba5d74253570d9a8438db6f263c79c756a13b7fce2bd3f93f29 install.sh
f8c728b2048a92948aff1979db70e21e89f410528d2d133112f1e2acc0214b34 install.sh
7881ea9b132eb7c6d12db6f14ca55bbb5d251edf08693d570eac31ad0d00c827 install.ps1
Binary file modified SHASUMS256.txt.sig
Binary file not shown.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ download_and_install() {
platform="$(detect_platform)"
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://api.github.com/repos/pnpm/pnpm/releases")" || abort "Download Error!"
version="$(printf '%s' "${version_json}" | grep '"tag_name"' | head -n 1 | awk -F '"' '/tag_name/ { print substr($4,2) }')"
version_json="$(download "https://registry.npmjs.org/@pnpm/exe")" || abort "Download Error!"
version="$(printf '%s' "${version_json}" | tr '{' '\n' | awk -F '"' '/latest/ { print $4 }')"
else
version="${PNPM_VERSION}"
fi
Expand Down

0 comments on commit 1bf43f1

Please sign in to comment.