Merge pull request #204 from Dicebot/fixup-global-conf

Fixup for /etc/dcd.conf support
This commit is contained in:
Brian Schott 2015-03-26 13:18:35 -07:00
commit 80b4e0d534
1 changed files with 2 additions and 2 deletions

View File

@ -250,8 +250,8 @@ string getConfigurationLocation()
configDir = environment.get("HOME", null);
if (configDir !is null)
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
else
configDir = "/etc/";
if (!exists(configDir))
configDir = buildPath("/etc/", CONFIG_FILE_NAME);
}
else
{