diff --git a/.cursor/install.sh b/.cursor/install.sh index c3bc5de..a76d4e5 100755 --- a/.cursor/install.sh +++ b/.cursor/install.sh @@ -56,10 +56,6 @@ semver_token() { # Official version invocations: # markdownlint-cli2 — `--version` is a glob (DavidAnson/markdownlint-cli2#289); # `--help` prints "markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)" and exits. -# editorconfig-checker — `--version` -# typos — `--version` (prints "typos-cli X.Y.Z") -# lychee — `--version` -# gitleaks — `version` subcommand (README "Available Commands") tool_report() { local bin="$1" name="$2" out case "$name" in @@ -126,7 +122,6 @@ if [[ "$arch" != "x86_64" ]]; then log "WARNING: this script targets x86_64 Linux; detected '${arch}'. Release URLs may not match." fi -# install an executable into BIN_DIR, escalating with sudo only when required. place() { local src="$1" name="$2" [[ -n "$src" && -f "$src" ]] || { @@ -140,7 +135,6 @@ place() { fi } -# symlink a target into BIN_DIR, escalating with sudo only when required. link() { local target="$1" name="$2" if [[ -w "$BIN_DIR" ]]; then @@ -158,13 +152,10 @@ ensure_work() { fi } -# Download over an HTTPS-pinned redirect chain; a couple of retries absorb -# transient network blips during setup. fetch() { curl -fsSL --retry 3 --retry-delay 2 --proto '=https' --proto-redir '=https' "$1" -o "$2" } -# extract_first -> path to the extracted file. # Release tarballs differ in layout (flat vs. nested dir), so locate by name. extract_first() { local tarball="$1" dest="$2" name="$3" found