aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-17 02:49:05 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-17 13:33:35 -0300
commit7868575fd26da8b50384f9203b8a548ae35e5543 (patch)
treeee3c295f56840a8332538f42463f340919444354
parenta075e94ddda2855f7254845971c7b00666292234 (diff)
downloadluarocks-7868575fd26da8b50384f9203b8a548ae35e5543.tar.gz
luarocks-7868575fd26da8b50384f9203b8a548ae35e5543.tar.bz2
luarocks-7868575fd26da8b50384f9203b8a548ae35e5543.zip
fix(show): print commands correctly in --porcelain mode
-rw-r--r--src/luarocks/cmd/show.lua3
1 files changed, 1 insertions, 2 deletions
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)
201 201
202 local bin_dir = path.deploy_bin_dir(repo) 202 local bin_dir = path.deploy_bin_dir(repo)
203 repos.recurse_rock_manifest_entry(rock_manifest.bin, function(pathname) 203 repos.recurse_rock_manifest_entry(rock_manifest.bin, function(pathname)
204 pathname = adjust_path(name, version, bin_dir, pathname)
205 table.insert(ret, { 204 table.insert(ret, {
206 name = pathname, 205 name = name,
207 file = adjust_path(name, version, bin_dir, pathname, cfg.wrapper_suffix), 206 file = adjust_path(name, version, bin_dir, pathname, cfg.wrapper_suffix),
208 }) 207 })
209 end) 208 end)