diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-28 21:11:48 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-29 15:49:57 +0000 |
commit | e63274073c9d860921483daa2c9d0f9d55af4443 (patch) | |
tree | ca0f83bbb47b4b992872bd40e160b070882d87ec | |
parent | 41cf95fdf5becce038e68422c294634983727285 (diff) | |
download | luarocks-e63274073c9d860921483daa2c9d0f9d55af4443.tar.gz luarocks-e63274073c9d860921483daa2c9d0f9d55af4443.tar.bz2 luarocks-e63274073c9d860921483daa2c9d0f9d55af4443.zip |
fix: don't crash when root_dir is a table
-rw-r--r-- | src/luarocks/cmd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 200ec13b..8d70f127 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
@@ -736,7 +736,7 @@ function cmd.run_command(description, commands, external_namespace, ...) | |||
736 | and (" - failed to force the lock" .. (err and ": " .. err or "")) | 736 | and (" - failed to force the lock" .. (err and ": " .. err or "")) |
737 | or " - use --force-lock to overwrite the lock" | 737 | or " - use --force-lock to overwrite the lock" |
738 | die("command '" .. args.command .. "' " .. | 738 | die("command '" .. args.command .. "' " .. |
739 | "requires exclusive access to " .. cfg.root_dir .. | 739 | "requires exclusive access to " .. path.root_dir(cfg.root_dir) .. |
740 | try_force, cmd.errorcodes.LOCK) | 740 | try_force, cmd.errorcodes.LOCK) |
741 | end | 741 | end |
742 | end | 742 | end |