Skip to content

Commit

Permalink
fix: Fix install script on Apple devices with Apple Silicon
Browse files Browse the repository at this point in the history
On Apple devices with Apple Silicon, such as my M1 MacBook, the install
script fails as it tries to install linux version of jq.

Signed-off-by: Soumil Paranjpay <soumil.paranjpay@gmail.com>
  • Loading branch information
Soumil-07 committed Aug 14, 2023
1 parent 11cfea1 commit be77f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ installDependencies() {
JQ='jq'
if [ "$HAS_JQ" = 'false' ]; then
JQ="$(mktemp -d)/jq"
if [ "${OS}-${ARCH}" = 'darwin-amd64' ]; then
if [ "${OS}-${ARCH}" = 'darwin-amd64' ] || [ "${OS}-${ARCH}" = 'darwin-arm64' ]; then
download 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64' "$JQ"
else
download 'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64' "$JQ"
Expand Down

0 comments on commit be77f24

Please sign in to comment.