Add flags to node build to specify the server's repository and branch. It should also detect whether the current caches/pokemon-showdown matches the ones specified in the flags.
|
if (!fs.existsSync('caches/pokemon-showdown')) { |
|
child_process.execSync('git clone https://github.com/smogon/pokemon-showdown.git', { |
|
cwd: 'caches', |
|
}); |
|
} |