From 7868575fd26da8b50384f9203b8a548ae35e5543 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sat, 17 Feb 2024 02:49:05 -0300 Subject: fix(show): print commands correctly in --porcelain mode --- src/luarocks/cmd/show.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/cmd/show.lua b/src/luarocks/cmd/show.lua index d93459fd..88cbbada 100644 --- a/src/luarocks/cmd/show.lua +++ b/src/luarocks/cmd/show.lua @@ -201,9 +201,8 @@ local function commands_to_list(name, version, repo) local bin_dir = path.deploy_bin_dir(repo) repos.recurse_rock_manifest_entry(rock_manifest.bin, function(pathname) - pathname = adjust_path(name, version, bin_dir, pathname) table.insert(ret, { - name = pathname, + name = name, file = adjust_path(name, version, bin_dir, pathname, cfg.wrapper_suffix), }) end) -- cgit v1.2.3-55-g6feb