mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1873: Specify different path to extensions/hooks directory
- Thanks to Eli.
This commit is contained in:
parent
77b3ee0561
commit
c300cff00f
6 changed files with 35 additions and 6 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue