diff --git a/SHASUMS256.txt b/SHASUMS256.txt index 6efbcf7..a8631af 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 -8e925728fdb662c902d59116fe167412ae743a0c247bc25aa410093c02ce52db install.sh +4f9717b041ea25392f415002e2641c917e122ce1e752117188ee8867ac859aa5 install.sh fac0ced691e2f85e2a1e3ba413aa7ec8fad0e8b54ff1e151a96be58665ead69f install.ps1 diff --git a/SHASUMS256.txt.sig b/SHASUMS256.txt.sig index 4ba430f..b1de8bb 100644 Binary files a/SHASUMS256.txt.sig and b/SHASUMS256.txt.sig differ diff --git a/install.sh b/install.sh index 8fa27f2..cec760e 100644 --- a/install.sh +++ b/install.sh @@ -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