diff --git a/get-gaze-client.js b/get-gaze-client.js index 9641f3b..134cfb7 100644 --- a/get-gaze-client.js +++ b/get-gaze-client.js @@ -25,6 +25,14 @@ function downloadFile(source, target) { }); } +// Make sure vendors folder exists + +if (!fs.existsSync("vendors")){ + fs.mkdirSync("vendors"); +} + +// Download all file + for (let i = 0; i < fileList.length; i++) { let file = fileList[i]; downloadFile(file.url, file.localPath);