Skip to content

Commit

Permalink
remove empty folder
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Nov 7, 2023
1 parent eef187e commit 2b8b4ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/clientDependencies/pullJar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion scripts/clientDependencies/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b8b4ac

Please sign in to comment.