mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Confirms database creation
This commit is contained in:
parent
362379ffd7
commit
529b36a391
1 changed files with 3 additions and 3 deletions
|
@ -70,10 +70,10 @@ void initializeData (Configuration& configuration, Database& database)
|
|||
std::cout << "# Using default DB location " << dbLocation._data << "\n";
|
||||
}
|
||||
|
||||
// TODO If dbLocation does not exist, ask whether it should be created.
|
||||
// If dbLocation does not exist, ask whether it should be created.
|
||||
bool shinyNewDatabase = false;
|
||||
if (! dbLocation.exists () /* &&
|
||||
confirm ("Create Timewarrior database in " + dbLocation._data + "?")*/)
|
||||
if (! dbLocation.exists () &&
|
||||
confirm ("Create new database in " + dbLocation._data + "?"))
|
||||
{
|
||||
dbLocation.create (0700);
|
||||
std::cout << "# Created missing database in " << dbLocation._data << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue