From 9b249227220ea01c3ae40b4e3491f031a5307194 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sat, 14 Nov 2015 17:33:32 +0100 Subject: write config directory only if explictly given, use defaults otherwise --- src/luarocks/cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index e3d6e74b..79b399f0 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -149,7 +149,7 @@ local sys_config_file_default, home_config_file_default local sys_config_dir, home_config_dir local sys_config_ok, home_config_ok = false, false local extra_luarocks_module_dir -sys_config_dir = site_config.LUAROCKS_SYSCONFDIR +sys_config_dir = site_config.LUAROCKS_SYSCONFDIR or site_config.LUAROCKS_PREFIX if cfg.platforms.windows then cfg.home = os.getenv("APPDATA") or "c:" sys_config_dir = sys_config_dir or "c:/luarocks" -- cgit v1.2.3-55-g6feb