fix(config): 🐛 fcinfo script overwrite wrong files

This commit is contained in:
Julien Oculi 2024-03-14 20:03:01 +01:00
parent 6e59bf5ff6
commit aad3e6944a

View file

@ -4,7 +4,7 @@ const getStaged = new Deno.Command('git', {
const { stdout } = await getStaged.output()
const staged = new TextDecoder().decode(stdout).split(/\r?\n/).filter((path) =>
path.startsWith('sketch/')
path.startsWith('sketch/') && path.endsWith('.FCStd')
)
for (const file of staged) {