Update sync_dir handling (#55)

* Update sync_dir handling to use the absolute path for setting parameter to something other than ~/OneDrive via config file or command line
This commit is contained in:
abraunegg 2018-07-10 05:34:27 +10:00 committed by GitHub
parent 4e93cfad50
commit fed53e8612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ int main(string[] args)
cfg.init();
// command line parameters override the config
if (syncDirName) cfg.setValue("sync_dir", syncDirName);
if (syncDirName) cfg.setValue("sync_dir", syncDirName.expandTilde().absolutePath());
// upgrades
if (exists(configDirName ~ "/items.db")) {