Skip to content

Commit b90aee1

Browse files
committed
fix: malformed file paths in generated gma
Changing to the new command gave a path including the ./, needed to strip that out. Also put break afterward in case the filepath works for multiple allowlist entries for some reason.
1 parent 4bc2dfb commit b90aee1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gma.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,12 @@ do
178178
end
179179
end
180180

181-
files[#files + 1] = { path = path, content = read(path) }
181+
files[#files + 1] = {
182+
path = normalized:sub(2), -- strip initial ./ part
183+
content = read(path)
184+
}
185+
186+
break
182187
end
183188
end
184189

0 commit comments

Comments
 (0)