]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
simpler
authorShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 21:37:08 +0000 (16:37 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 21:37:08 +0000 (16:37 -0500)
git-remote-gcrypt

index c9bfcafde642d0754c40a004cbaac04be318763f..a71c53fafa3f635c41a6a4de32a0b664937df7f0 100755 (executable)
@@ -86,6 +86,7 @@ while [ $# -gt 0 ]; do
                        while [ $# -gt 0 ]; do
                                case "$1" in
                                        --force|-f) FORCE_CLEAN=yes ;;
+                                       help|--help|-h) show_help; exit 0 ;;
                                        -*) echo "Unknown option: $1" >&2; exit 1 ;;
                                        *)
                                                if [ -z "$URL" ]; then
@@ -227,7 +228,7 @@ resolve_url() {
        local cmd="$1"
        if [ -z "$URL" ]; then
                local remotes
-               remotes=$(git remote -v | grep 'gcrypt::' | awk '{print $1}' | sort -u || :)
+               remotes=$(git remote -v | grep 'gcrypt::' || :)
                echo "Usage: git-remote-gcrypt $cmd [URL|REMOTE]" >&2
                if [ -n "$remotes" ]; then
                        echo "Error: No URL or remote specified. Available gcrypt remotes:" >&2