From: Shane Jaroch Date: Sat, 17 Jan 2026 07:43:56 +0000 (-0500) Subject: fix: use posix-specific syntax in docs generation X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=1d9c21b802e8e23cc85533b53f7cbf83421242b4;p=gamesguru%2Fgit-remote-gcrypt.git fix: use posix-specific syntax in docs generation --- diff --git a/completions/gen_docs.sh b/completions/gen_docs.sh index c276581..acca7e5 100755 --- a/completions/gen_docs.sh +++ b/completions/gen_docs.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e # gen_docs.sh @@ -111,10 +111,10 @@ CLEAN_FLAGS_FISH=$(echo "$CLEAN_FLAGS_RAW" | while read -r line; do # escape single quotes for Fish string desc=$(echo "$RAW_HELP" | grep -F -- "$line" | sed 's/^[[:space:]]*//' | cut -d ' ' -f 3- | sed "s/'/\\\\'/g") - if [[ "$f1" == -* ]] && [[ "$f2" == --* ]]; then + if [[ $f1 == -* ]] && [[ $f2 == --* ]]; then short="${f1#-}" long="${f2#--}" - elif [[ "$f1" == --* ]]; then + elif [[ $f1 == --* ]]; then long="${f1#--}" else # Starts with - (short)