We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6332834 commit d69396eCopy full SHA for d69396e
dist/tools/code_in_guides_check/check_for_code.sh
@@ -38,10 +38,13 @@ parse_code_block() {
38
39
# Check if this code exists in any file in the source directory
40
found=0
41
- for src_file in "$SOURCE_DIR"/*; do
42
- # Skip if not a regular file
43
- [ -f "$src_file" ] || continue
44
-
+ # Exclude `/bin/` folders
+ INPUT_FILES=$(
+ find "$SOURCE_DIR" \
+ -type d -name "bin" -prune\
45
+ -or -type f -print\
46
+ )
47
+ for src_file in $INPUT_FILES; do
48
# Read the file content
49
src_content=$(cat "$src_file")
50
0 commit comments