Created
December 4, 2025 02:05
-
-
Save brynary/b40bd2bd4168599e628460bb2db57944 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| QLTY_CLI_VERSION="${QLTY_CLI_VERSION:-latest}" | |
| case $(uname -ms) in | |
| 'Darwin x86_64') | |
| target=x86_64-apple-darwin | |
| ;; | |
| 'Darwin arm64') | |
| target=aarch64-apple-darwin | |
| ;; | |
| 'Linux aarch64' | 'Linux arm64') | |
| target=aarch64-unknown-linux-gnu | |
| ;; | |
| 'Linux x86_64' | *) | |
| target=x86_64-unknown-linux-gnu | |
| ;; | |
| esac | |
| echo "Downloading qlty $QLTY_CLI_VERSION for $target..." | |
| curl -fsSL "https://qlty-releases.s3.amazonaws.com/qlty/$QLTY_CLI_VERSION/qlty-$target.tar.xz" -o /tmp/qlty.tar.xz | |
| echo "Extracting qlty..." | |
| mkdir -p "$HOME/.qlty/bin" | |
| tar -xJf /tmp/qlty.tar.xz -C "$HOME/.qlty/bin" --strip-components=1 | |
| chmod +x "$HOME/.qlty/bin/qlty" | |
| export PATH="$HOME/.qlty/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment