Fix handling of a custom configuration directory (#2029)

* Fix handling of a custom configuration directory
This commit is contained in:
abraunegg 2022-07-04 05:59:00 +10:00 committed by GitHub
parent 3591eededc
commit e422adb477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,8 @@ final class Config
string systemConfigDirBase;
if (confdirOption != "") {
// 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);
if (canFind(confdirOption,"~")) {
// A ~ was found