fix: Fix empty sourceListPath when config.sources is empty

This commit is contained in:
Emmanuel Lampe 2023-05-28 07:14:06 +02:00
parent 5c95bee3f8
commit 6a5c6094e5

View file

@ -58,7 +58,7 @@ 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;