Skip to content

Instantly share code, notes, and snippets.

@davegarvey
davegarvey / install-jq.command
Created May 15, 2025 08:49
Install jq on Mac
#!/bin/bash
# Show a message
echo "Installing jq..."
# Detect architecture
ARCH=$(uname -m)
if [ "$ARCH" = "arm64" ]; then
JQ_URL="https://github.com/jqlang/jq/releases/latest/download/jq-macos-arm64"
elif [ "$ARCH" = "x86_64" ]; then