fix: feat: stack lock protocol for singleton project stack access (#255)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed

Fix get_fns in agent-smoke.sh: use separate -e flags instead of ;
as sed command separator — BusyBox sed (Alpine CI) does not support
semicolons as separators within a single expression, causing function
names to retain their () suffix and never match in LIB_FUNS lookups.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-06 06:49:42 +00:00
parent 1053e02f67
commit 81adad21e5

View file

@ -23,7 +23,7 @@ get_fns() {
# GNU grep and BusyBox grep (some BusyBox builds treat bare () as grouping
# even in BRE). BRE one-or-more via [X][X]* instead of +.
grep '^[[:space:]]*[a-zA-Z_][a-zA-Z0-9_][a-zA-Z0-9_]*[[:space:]]*[(][)]' "$f" 2>/dev/null \
| sed 's/^[[:space:]]*//; s/[[:space:]]*[(][)].*$//' \
| sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*[(][)].*$//' \
| sort -u || true
}