update
authorShane Jaroch <chown_tee@proton.me>
Wed, 14 Jan 2026 16:39:04 +0000 (11:39 -0500)
committerShane Jaroch <chown_tee@proton.me>
Wed, 14 Jan 2026 16:39:04 +0000 (11:39 -0500)
README.rst
completions/bash/git-remote-gcrypt
completions/zsh/_git-remote-gcrypt
tests/verify-system-install.sh

index 00d555718d584f766d3a6c876db673bb66adbb5e..4f798e363a3c060c7ac339e1c761f907f7e92250 100644 (file)
@@ -74,6 +74,7 @@ Command Reference
       GCRYPT_TRACE=1        Enable shell tracing (set -x) for rsync/curl commands
       GCRYPT_FULL_REPACK=1  Force full repack when pushing
 
+
 Configuration
 =============
 
@@ -288,7 +289,7 @@ To detect if a git url is a gcrypt repo, use::
 
 (Legacy syntax ``--check`` is also supported).
 
-Exit status is 0 if the remote uses gcrypt and was decrypted successfully, 1 if it
+Exit status is 0
 uses gcrypt but could not be decrypted, and 100 if the repo is not
 encrypted with gcrypt (or could not be accessed).
 
index baf07157aef4412a4fe2a23c7bc73826cc94a92a..a4d279eb34b14133a5edc0dc54eb2ec938c7af56 100644 (file)
@@ -21,12 +21,12 @@ _git_remote_gcrypt() {
        # 2. Handle subcommands
        case "${COMP_WORDS[1]}" in
                clean)
-                       local remotes=$(git remote -v 2>/dev/null | grep 'gcrypt::' | awk '{print $1}' | sort -u || :)
+                       local remotes=$(git remote -v 2>/dev/null | grep 'gcrypt::' | awk '{print $1}' | sort -u || :
                        COMPREPLY=($(compgen -W " $remotes" -- "$cur"))
                        return 0
                        ;;
                check)
-                       local remotes=$(git remote 2>/dev/null || :)
+                       local remotes=$(git remote 2>/dev/null || :
                        COMPREPLY=($(compgen -W "$remotes" -- "$cur"))
                        return 0
                        ;;
index 87e0987c9095d240c75d2d15e9fcdfefd2dcb824..d937362b2160da09d8172a0fb487a9fc12d2008a 100644 (file)
@@ -15,7 +15,7 @@ _git_remote_gcrypt() {
        case $line[1] in
        clean)
                _arguments \
-                       {clean_flags_zsh} \
+                       '()' {} '[flag]' \
                        '*:gcrypt URL: _alternative "remotes:gcrypt remote:($(git remote -v 2>/dev/null | grep "gcrypt::" | awk "{print \$1}" | sort -u))" "files:file:_files"'
                ;;
        check)
index f7bc3ee5a79211b43fd543b355f141357e8f1b9b..0d5e0ddefcc691c28e5004467562dcb812f13bc1 100755 (executable)
@@ -40,7 +40,7 @@ else
        EXPECTED_ID="unknown_OS"
 fi
 
-if [[ $OUTPUT != *"(deb running on $EXPECTED_ID)"* ]]; then
+if [[ $OUTPUT != *"($EXPECTED_ID)"* ]]; then
        print_err "ERROR: Distro ID '$EXPECTED_ID' missing from version string! (Got: $OUTPUT)"
        exit 1
 fi