mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix - .taskrc/.task
- Fixed bug whereby task created the default ~/.task directory, even if an extant .taskrc:data.location specified otherwise (thanks to Federico Hernandez).
This commit is contained in:
parent
ff14f0a28a
commit
362b4a5bc9
3 changed files with 7 additions and 0 deletions
|
@ -219,6 +219,9 @@ void Config::createDefault (const std::string& home)
|
|||
|
||||
this->load (rcFile);
|
||||
|
||||
// Get the data.location value from the (potentially newly created) .taskrc
|
||||
// file.
|
||||
dataDir = this->get ("data.location", dataDir);
|
||||
if (-1 == access (dataDir.c_str (), F_OK))
|
||||
mkdir (dataDir.c_str (), S_IRWXU);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue