Skip to content

fix: replace broken validate.sh by validate.js#300

Merged
xibz merged 1 commit intospec-v0.5from
fix_validate
Mar 3, 2026
Merged

fix: replace broken validate.sh by validate.js#300
xibz merged 1 commit intospec-v0.5from
fix_validate

Conversation

@afrittoli
Copy link
Member

Changes

BASH script has several issues:

  1. Doesn't failed on error, because in bash variable (like exampled_failed) updated into a while loop are not updated outside the loop, because a while loop is a subprocess, you can look at https://www.baeldung.com/linux/while-loop-variable-scope
  2. find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments.

Because 1. is a symptom of the limit of bash for
this script, and the tools already require the javascript
stack (nodejs/bun/...) I replace the validate.sh by validate.js

Cherry-pick of 5ac28b1

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

BASH script has several issues:

1. Doesn't failed on error, because in bash variable (like
  `exampled_failed`) updated into a while loop are not updated outside
  the loop, because a while loop is a subprocess, you can look at
  https://www.baeldung.com/linux/while-loop-variable-scope
2. find: warning: you have specified the global option -maxdepth after
  the argument -type, but global options are not positional, i.e.,
  -maxdepth affects tests specified before it as well as those specified
  after it.  Please specify global options before other arguments.
 
 Because 1. is a symptom of the limit of bash for
 this script, and the tools already require the javascript
 stack (nodejs/bun/...) I replace the validate.sh by validate.js
 
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
@afrittoli afrittoli requested a review from a team as a code owner March 2, 2026 18:32
@xibz xibz merged commit 032001e into spec-v0.5 Mar 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants