1
Fork 0
keyswirl/layout-lens/scripts/generate-layouts.sh
2023-10-22 16:39:55 +02:00

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