aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/cfg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/cfg.lua')
-rw-r--r--src/luarocks/cfg.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 261411b7..45c73bf6 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -63,9 +63,11 @@ end
63if system == "FreeBSD" then 63if system == "FreeBSD" then
64 detected.unix = true 64 detected.unix = true
65 detected.freebsd = true 65 detected.freebsd = true
66 detected.bsd = true
66elseif system == "Darwin" then 67elseif system == "Darwin" then
67 detected.unix = true 68 detected.unix = true
68 detected.macosx = true 69 detected.macosx = true
70 detected.bsd = true
69elseif system == "Linux" then 71elseif system == "Linux" then
70 detected.unix = true 72 detected.unix = true
71 detected.linux = true 73 detected.linux = true
@@ -83,7 +85,7 @@ end
83 85
84-- Path configuration: 86-- Path configuration:
85 87
86local sys_config_file, home_config_file, home_tree 88local sys_config_file, home_config_file
87if detected.windows or detected.mingw32 then 89if detected.windows or detected.mingw32 then
88 home = os.getenv("APPDATA") or "c:" 90 home = os.getenv("APPDATA") or "c:"
89 sys_config_file = "c:/luarocks/config.lua" 91 sys_config_file = "c:/luarocks/config.lua"