diff --git a/scripts/clientDependencies/pullJar.js b/scripts/clientDependencies/pullJar.js index 9ddb3e6e4..39ccb6dd8 100644 --- a/scripts/clientDependencies/pullJar.js +++ b/scripts/clientDependencies/pullJar.js @@ -31,6 +31,9 @@ exports.run = async function () { for (let plugin of plugins) { console.log(plugins) const pluginFileName = path.relative(pluginUrl, plugin.name); + if (!pluginFileName) { + continue; + } const isSuccess = await oss.download(plugin.name, 'libraries/java/plugins', pluginFileName); if (!isSuccess) { console.error('Download plugin failed', pluginFileName) @@ -43,6 +46,9 @@ exports.run = async function () { const starters = await oss.getOSSFolderFiles(startersUrl) for (let starter of starters) { const fileName = path.relative(startersUrl, starter.name); + if (!fileName) { + continue; + } const isSuccess = await oss.download(starter.name, 'libraries/java/starters', fileName); if (!isSuccess) { console.error('Download starters failed', fileName) diff --git a/scripts/clientDependencies/util.js b/scripts/clientDependencies/util.js index 9c2130d67..c41f3ea66 100644 --- a/scripts/clientDependencies/util.js +++ b/scripts/clientDependencies/util.js @@ -145,7 +145,6 @@ exports.oss = { 'max-keys': 1000, 'continuation-token': nextToken, }); - console.log(res); if (res?.res?.status !== 200) { console.error('error', res); return null;