Skip to content

Commit 223ac14

Browse files
committed
Fix error when optional --ignore is not specified
1 parent f04f068 commit 223ac14

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---------------------------------------------------------------------------------------------------
22
Version: 0.1.5
3+
Bugfixes:
4+
- Fix error when the optional '--ignore' argument was not specified
35
---------------------------------------------------------------------------------------------------
46
Version: 0.1.4
57
Date: 2023-02-10

src/main.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ if output_dir ~= source_dir then
267267
ignore_path_lut[output_dir:str()] = true
268268
end
269269

270-
for _, ignore_path in ipairs(args.ignore_paths) do
271-
ignore_path_lut[ignore_path:to_fully_qualified(source_dir):normalize():str()] = true
270+
if args.ignore_paths then
271+
for _, ignore_path in ipairs(args.ignore_paths) do
272+
ignore_path_lut[ignore_path:to_fully_qualified(source_dir):normalize():str()] = true
273+
end
272274
end
273275

274276
local function warn_for_unhandled_entry(mode, entry_path)

0 commit comments

Comments
 (0)