Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hooks/post_install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function PLUGIN:PostInstall(ctx)
error("Could not find Carthage.pkg in " .. rootPath)
end

-- Create extraction directory
-- Clean extraction directory
local expand_dir = rootPath .. "/expanded"
os.execute(string.format('mkdir -p "%s"', expand_dir))
os.execute(string.format('rm -rf "%s"', expand_dir))

-- Expand the .pkg file using pkgutil
local expand_cmd = string.format('pkgutil --expand "%s" "%s"', pkg_path, expand_dir)
Expand Down