Skip to content

Commit 7c4294b

Browse files
authored
Merge pull request #1137 from lshgdut/pr
fix: incorrect logic to create release packages
2 parents 2f58f4b + bcd3f84 commit 7c4294b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/scripts/create-release-packages.sh

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,22 +218,22 @@ ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilo
218218
ALL_SCRIPTS=(sh ps)
219219

220220
norm_list() {
221-
# convert comma+space separated -> space separated unique while preserving order of first occurrence
222-
tr ',\n' ' ' | awk '{for(i=1;i<=NF;i++){if(!seen[$i]++){printf((out?" ":"") $i)}}}END{printf("\n")}'
221+
# convert comma+space separated -> line separated unique while preserving order of first occurrence
222+
tr ',\n' ' ' | awk '{for(i=1;i<=NF;i++){if(!seen[$i]++){printf((out?"\n":"") $i);out=1}}}END{printf("\n")}'
223223
}
224224

225225
validate_subset() {
226226
local type=$1; shift; local -n allowed=$1; shift; local items=("$@")
227-
local ok=1
227+
local invalid=0
228228
for it in "${items[@]}"; do
229229
local found=0
230230
for a in "${allowed[@]}"; do [[ $it == "$a" ]] && { found=1; break; }; done
231231
if [[ $found -eq 0 ]]; then
232232
echo "Error: unknown $type '$it' (allowed: ${allowed[*]})" >&2
233-
ok=0
233+
invalid=1
234234
fi
235235
done
236-
return $ok
236+
return $invalid
237237
}
238238

239239
if [[ -n ${AGENTS:-} ]]; then

0 commit comments

Comments
 (0)