TW-1873: Specify different path to extensions/hooks directory

- Thanks to Eli.
This commit is contained in:
Paul Beckingham 2016-12-19 09:03:27 -05:00
parent 77b3ee0561
commit c300cff00f
6 changed files with 35 additions and 6 deletions

View file

@ -307,8 +307,16 @@ int CmdDiagnostics::execute (std::string& output)
<< "\n\n";
// Display hook status.
Path hookLocation (context.config.get ("data.location"));
hookLocation += "hooks";
Path hookLocation;
if (context.config.has ("hooks.location"))
{
hookLocation = Path (context.config.get ("hooks.location"));
}
else
{
hookLocation = Path (context.config.get ("data.location"));
hookLocation += "hooks";
}
out << bold.colorize (STRING_CMD_DIAG_HOOKS)
<< '\n'