2023-10-22 16:39:55 +02:00
|
|
|
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
|
2023-10-22 17:24:28 +02:00
|
|
|
# Replace the .json extension with a new extension .svg
|
2023-10-22 16:39:55 +02:00
|
|
|
out="${config%.json}.svg"
|
|
|
|
# Generate preview
|
|
|
|
layout-lens "$config" "$out"
|
|
|
|
fi
|
|
|
|
done
|