File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if [ -z "$example" ]; then
21
21
fi
22
22
23
23
PRE=" # EXAMPLE $example |"
24
- dir=" examples /$example /godot"
24
+ dir=" . /$example /godot"
25
25
logfile=" stderr-$example .log"
26
26
# stdout also outputs some "ERROR:" messages, these are currently ignored.
27
27
Original file line number Diff line number Diff line change @@ -215,10 +215,16 @@ jobs:
215
215
216
216
- name : " Run examples for short time"
217
217
run : |
218
- # List all folders in './example' directory
219
- for example in $(ls examples); do
220
- ./.github/other/check-example.sh "$example"
221
- done
218
+ # Enable extended globbing to allow pattern exclusion.
219
+ shopt -s extglob
220
+
221
+ # Match all directories/files except `target` and any starting with `.`.
222
+ files='!(target|.*)/'
223
+
224
+ # List all folders in current directory. Don't quote $files variable.
225
+ for demo in $files; do
226
+ ./.github/other/check-example.sh "$demo"
227
+ done
222
228
223
229
224
230
cargo-deny-machete :
You can’t perform that action at this time.
0 commit comments