12 lines
325 B
Bash
12 lines
325 B
Bash
![]() |
shopt -s globstar # Enable the globstar option to use **
|
||
|
|
||
|
for config in **/lens.json; do
|
||
|
# Check if the path is a regular file
|
||
|
if [ -f "$config" ]; then
|
||
|
# Replace the .txt extension with a new extension (e.g., .newext)
|
||
|
out="${config%.json}.svg"
|
||
|
# Generate preview
|
||
|
layout-lens "$config" "$out"
|
||
|
fi
|
||
|
done
|