fix: config overwrite for servers and sources

This commit is contained in:
Emmanuel Lampe 2023-05-28 06:58:30 +02:00
parent 744f4b5f78
commit ec6d295811

View file

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