Skip to content

Commit

Permalink
Fix full build not building replays correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Nov 18, 2019
1 parent 59f808f commit 55e92fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ case 'full':
execSync(`node ./build-tools/build-indexes`, options);
execSync(`node ./build-tools/build-learnsets`, options);
execSync(`node ./build-tools/build-minidex`, options);
execSync(`node ./replays/build`, options);
full = ' full';
break;
case 'indexes':
Expand Down Expand Up @@ -70,9 +69,9 @@ default:

execSync(`node ./build-tools/update` + full, options);

if (process.argv[2] === 'full') {
if (full) {
try {
fs.statSync('../replays/build');
execSync(`node ../replays/build`, options);
fs.statSync('./replays/build');
execSync(`node ./replays/build`, options);
} catch (e) {}
}

0 comments on commit 55e92fe

Please sign in to comment.