From 1d9c21b802e8e23cc85533b53f7cbf83421242b4 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sat, 17 Jan 2026 02:43:56 -0500 Subject: [PATCH] fix: use posix-specific syntax in docs generation --- completions/gen_docs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.52.0