diff --git a/SHASUMS256.txt b/SHASUMS256.txt index 1041e88..4469a57 100644 --- a/SHASUMS256.txt +++ b/SHASUMS256.txt @@ -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 diff --git a/SHASUMS256.txt.sig b/SHASUMS256.txt.sig index 3b5203e..813bcb4 100644 Binary files a/SHASUMS256.txt.sig and b/SHASUMS256.txt.sig differ diff --git a/install.sh b/install.sh index 79f6fc2..9e8c2c5 100644 --- a/install.sh +++ b/install.sh @@ -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