Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/spark-inquisitor/blob/main/install.sh # spark-inquisitor Ultra-fast compiled native Rust gatekeeper and automated code reviewer Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `spark-inquisitor / install.sh` 40 lines ยท 1160 bytes Raw Blame History 1 #!/bin/sh 2 set -e 3 4 REPO="aien-dev/spark-inquisitor" 5 BIN_DIR="${HOME}/.local/bin" 6 mkdir -p "${BIN_DIR}" 7 8 OS=$(uname -s | tr "[:upper:]" "[:lower:]") 9 ARCH=$(uname -m) 10 11 if [ "${OS}" != "linux" ]; then 12 echo "Unsupported OS: ${OS}. Currently Linux aarch64 and x86_64 are supported." 13 exit 1 14 fi 15 16 case "${ARCH}" in 17 x86_64) TARGET_ARCH="x86_64" ;; 18 aarch64|arm64) TARGET_ARCH="aarch64" ;; 19 *) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; 20 esac 21 22 echo "Installing spark-inquisitor (${OS}-${TARGET_ARCH}) into ${BIN_DIR}..." 23 24 RELEASE_URL="https://github.com/${REPO}/releases/latest/download/spark-inquisitor-linux-${TARGET_ARCH}.tar.gz" 25 26 if command -v curl >/dev/null 2>&1; then 27 curl -fsSL "${RELEASE_URL}" -o /tmp/spark-inquisitor.tar.gz 28 elif command -v wget >/dev/null 2>&1; then 29 wget -qO /tmp/spark-inquisitor.tar.gz "${RELEASE_URL}" 30 else 31 echo "Error: curl or wget required." 32 exit 1 33 fi 34 35 tar -xzf /tmp/spark-inquisitor.tar.gz -C "${BIN_DIR}" spark-inquisitor 36 chmod +x "${BIN_DIR}/spark-inquisitor" 37 rm -f /tmp/spark-inquisitor.tar.gz 38 39 echo "spark-inquisitor successfully installed to ${BIN_DIR}/spark-inquisitor" 40 "${BIN_DIR}/spark-inquisitor" doctor