Skip to content

Commit ee60761

Browse files
committed
Fix dirs bug
1 parent 05afb06 commit ee60761

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

unicorn/core.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ end
129129
--- Creates folders from package_table.dirs
130130
-- @param package_table A valid package table
131131
local function action_make_folders(package_table)
132-
for _, v in package_table.dirs do
133-
fs.makeDir(v)
132+
if package_table.dirs then
133+
for _, v in pairs(package_table.dirs) do
134+
fs.makeDir(v)
135+
end
134136
end
135137
end
136138

@@ -189,3 +191,4 @@ function unicorn.core.uninstall(package_name)
189191
end
190192

191193
return unicorn.core
194+

0 commit comments

Comments
 (0)