projects
/
gamesguru
/
git-remote-gcrypt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d40d9d
)
fix: use posix-specific syntax in docs generation
author
Shane Jaroch
<chown_tee@proton.me>
Sat, 17 Jan 2026 07:43:56 +0000
(
02:43
-0500)
committer
Shane Jaroch
<chown_tee@proton.me>
Sat, 17 Jan 2026 07:49:04 +0000
(
02:49
-0500)
completions/gen_docs.sh
patch
|
blob
|
history
diff --git
a/completions/gen_docs.sh
b/completions/gen_docs.sh
index c27658123e2c5fa672fb13bca89a0cf6dd2372fb..acca7e5978df40e909d1a75c6cc9bc3e3e2ef25c 100755
(executable)
--- a/
completions/gen_docs.sh
+++ b/
completions/gen_docs.sh
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
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)