fix: use posix-specific syntax in docs generation
authorShane Jaroch <chown_tee@proton.me>
Sat, 17 Jan 2026 07:43:56 +0000 (02:43 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 17 Jan 2026 07:49:04 +0000 (02:49 -0500)
completions/gen_docs.sh

index c27658123e2c5fa672fb13bca89a0cf6dd2372fb..acca7e5978df40e909d1a75c6cc9bc3e3e2ef25c 100755 (executable)
@@ -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)