mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-05 23:43:16 +02:00
Fix syncdir option is ignored (#302)
* Explicitly set value for syncdir if the option is passed in via CLI rather than 'config' file
This commit is contained in:
parent
37131ba697
commit
594bfcec54
|
@ -167,6 +167,11 @@ int main(string[] args)
|
|||
}
|
||||
|
||||
// Set the local path OneDrive root
|
||||
if (syncDirName){
|
||||
// The user passed in an alternate sync_dir
|
||||
cfg.setValue("sync_dir", syncDirName);
|
||||
}
|
||||
|
||||
string syncDir;
|
||||
if ((environment.get("SHELL") == "") && (environment.get("USER") == "")){
|
||||
// No shell or user set, so expandTilde() will fail - usually headless system running under init.d / systemd
|
||||
|
|
Loading…
Reference in a new issue