fix: config sources and servers are now getting overriden

This commit is contained in:
Emmanuel Lampe 2023-05-28 07:05:24 +02:00
parent ec6d295811
commit 5c95bee3f8

View file

@ -57,10 +57,11 @@ async function main() {
);
sourcePath = sourcePath || config.source;
sourceListPath = sourceListPath.length == 0 || config.sources;
sourceListPath =
sourceListPath.length == 0 ? config.sources : sourceListPath;
targetPath = targetPath || config.target;
serverIdInput = serverIdInput || config.server;
serverIds = serverIds.length == 0 || config.servers;
serverIds = serverIds.length == 0 ? config.servers : serverIds;
}
// check if sourcePath and sourceListPath are both empty