This commit is contained in:
Jan Prochazka 2022-04-03 09:41:19 +02:00
parent 1a32d88312
commit 807392fc57
3 changed files with 4 additions and 1 deletions

View File

@ -104,6 +104,7 @@ module.exports = {
scriptFile,
[
'--checkParent', // ...process.argv.slice(3)
'--is-forked-api',
...processArgs.getPassArgs(),
],
{

View File

@ -3,6 +3,7 @@ const databaseConnectionProcess = require('./databaseConnectionProcess');
const serverConnectionProcess = require('./serverConnectionProcess');
const sessionProcess = require('./sessionProcess');
const jslDatastoreProcess = require('./jslDatastoreProcess');
const sshForwardProcess = require('./sshForwardProcess');
module.exports = {
connectProcess,
@ -10,4 +11,5 @@ module.exports = {
serverConnectionProcess,
sessionProcess,
jslDatastoreProcess,
sshForwardProcess,
};

View File

@ -8,7 +8,7 @@ const processArgs = require('./processArgs');
const createDirectories = {};
const ensureDirectory = (dir, clean) => {
if (!createDirectories[dir]) {
if (clean && fs.existsSync(dir)) {
if (clean && fs.existsSync(dir) && !platformInfo.isForkedApi) {
console.log(`Cleaning directory ${dir}`);
cleanDirectory(dir);
}