Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .cursor/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" ]] || {
Expand All @@ -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
Expand All @@ -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 <tarball> <dest-dir> <basename> -> 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
Expand Down
Loading