From: Shane Jaroch Date: Fri, 16 Jan 2026 23:20:09 +0000 (-0500) Subject: lint fixes X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=487e95b1d55d5b7d03d647ee9a40b4afaea956d3;p=gamesguru%2Fgit-remote-gcrypt.git lint fixes --- diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 8202a41..334c44c 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -1422,6 +1422,7 @@ get_remote_file_list() return 1 } git update-ref -d "refs/gcrypt/list-files" + else # Could not fetch, or remote is empty. # If checking, this might be fine, but for clean it's an issue if we expected files. # Returning 1 is safer. diff --git a/install.sh b/install.sh index fc909d4..f410675 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,6 @@ if [ -z "${prefix:-}" ]; then fi : "${DESTDIR:=}" -log() { printf "\033[1;36m[INSTALL] %s\033[0m\n" "$1"; } verbose() { echo "$@" >&2 && "$@"; } install_v() { diff --git a/tests/test-install-logic.sh b/tests/test-install-logic.sh index 7518b91..b1effeb 100755 --- a/tests/test-install-logic.sh +++ b/tests/test-install-logic.sh @@ -225,7 +225,7 @@ unset DESTDIR # We copy the installer (breaking symlink) and patch it to check a nonexistent path instead of /usr/local rm -f "$INSTALLER" -sed 's|/usr/local|/non/existent/path|g' "$REPO_ROOT/install.sh" > "$INSTALLER" +sed 's|/usr/local|/non/existent/path|g' "$REPO_ROOT/install.sh" >"$INSTALLER" chmod +x "$INSTALLER" # Run with PREFIX set but explicit prefix unset diff --git a/utils/gen_docs.sh b/utils/gen_docs.sh index b054510..7e29256 100755 --- a/utils/gen_docs.sh +++ b/utils/gen_docs.sh @@ -50,7 +50,8 @@ CLEAN_FLAGS_ZSH="" # Only generate if there are actual flags COMMA_FLAGS=$(echo "$CLEAN_FLAGS_BASH" | tr ' ' ',') if [ -n "$CLEAN_FLAGS_BASH" ]; then - CLEAN_FLAGS_ZSH="'(${CLEAN_FLAGS_BASH})' {${COMMA_FLAGS}} '[flag]'" + # zsh _arguments requires format: '(exclusion)'{-f,--long}'[desc]' as ONE string (no spaces) + CLEAN_FLAGS_ZSH="'(${CLEAN_FLAGS_BASH})'{${COMMA_FLAGS}}'[flag]'" else CLEAN_FLAGS_ZSH="" fi