Attempt to filter folders

This commit is contained in:
ac
2023-12-30 16:26:20 +10:00
parent 34a61a970f
commit accd10e804

View File

@@ -48,8 +48,17 @@ image:
- 'SCHEMS=$(for f in $SCHEMS ; do echo "${f##**/}"; done)'
dir_arr:
- !reference [.commands, get_dirs]
- END=$(wc -w <<< $DIRS)
- dir_arr=($DIRS)
- |
FILTERED=$(echo "")
for d in $DIRS
do
if [[ "$d" =~ ^[0-9]{4}-.*$ ]]
then
FILTERED=$(echo "$FILTERED $d")
fi
done
END=$(wc -w <<< $FILTERED)
dir_arr=($FILTERED)
kibot:
- 'SEARCH=".kicad_pro"'
- !reference [.commands, dir_arr]