Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install.sh: support compactified JSON from GitHub API.
In bytecodealliance/wasmtime#7377, we saw a case where a user gets compactified (single-line) JSON responses from the GitHub API. The `install.sh` logic to get the latest Wasmtime release version currently does text-munging that assumes a multiline (pretty-printed) JSON layout. This PR instead uses `tr` and `sed` to get the version number from either input format (thanks to @bjorn3 for the exact invocations!). Fixes bytecodealliance/wasmtime#7377.
- Loading branch information