Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Jun 25, 2024
1 parent a9a3ddd commit 08c9abd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions customize/packer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ local function get_plugins()
return plugins
end

local function install_luarocks_admin()
local cmd = "luarocks install luarocks-admin"
local ok, _, sout, serr = execex(cmd)
if not ok then
fail("failed to install luarocks-admin")
end
end

local function get_rocks()
local cmd = "luarocks list --tree=system --porcelain"
Expand Down Expand Up @@ -290,6 +297,9 @@ header("Get arguments")
local rocks = get_args()


header("Install luarocks-admin")
install_luarocks_admin()

header("Get existing rocks")
local pre_installed_rocks = get_rocks()

Expand Down

0 comments on commit 08c9abd

Please sign in to comment.