File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -218,22 +218,22 @@ ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf codex kilo
218218ALL_SCRIPTS=(sh ps)
219219
220220norm_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
225225validate_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
239239if [[ -n ${AGENTS:- } ]]; then
You can’t perform that action at this time.
0 commit comments