mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-17 05:06:17 +02:00
Fix handling of a custom configuration directory (#2029)
* Fix handling of a custom configuration directory
This commit is contained in:
parent
3591eededc
commit
e422adb477
|
@ -182,6 +182,8 @@ final class Config
|
||||||
string systemConfigDirBase;
|
string systemConfigDirBase;
|
||||||
if (confdirOption != "") {
|
if (confdirOption != "") {
|
||||||
// A CLI 'confdir' was passed in
|
// A CLI 'confdir' was passed in
|
||||||
|
// Clean up any stray " .. these should not be there ...
|
||||||
|
confdirOption = strip(confdirOption,"\"");
|
||||||
log.vdebug("configDirName: CLI override to set configDirName to: ", confdirOption);
|
log.vdebug("configDirName: CLI override to set configDirName to: ", confdirOption);
|
||||||
if (canFind(confdirOption,"~")) {
|
if (canFind(confdirOption,"~")) {
|
||||||
// A ~ was found
|
// A ~ was found
|
||||||
|
|
Loading…
Reference in a new issue