mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Shadow Files
- Added a missing check for file overwrites.
This commit is contained in:
parent
bdc167fd6a
commit
5bf8feefca
1 changed files with 4 additions and 0 deletions
|
@ -296,6 +296,10 @@ void Context::shadow ()
|
||||||
throw std::string ("Configuration variable 'shadow.file' is set to "
|
throw std::string ("Configuration variable 'shadow.file' is set to "
|
||||||
"overwrite your completed tasks. Please change it.");
|
"overwrite your completed tasks. Please change it.");
|
||||||
|
|
||||||
|
if (shadowFile.data == dataLocation + "/undo.data")
|
||||||
|
throw std::string ("Configuration variable 'shadow.file' is set to "
|
||||||
|
"overwrite your undo log. Please change it.");
|
||||||
|
|
||||||
std::string oldCurses = config.get ("curses");
|
std::string oldCurses = config.get ("curses");
|
||||||
std::string oldColor = config.get ("color");
|
std::string oldColor = config.get ("color");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue