shell script runner

This commit is contained in:
Jan Prochazka
2020-06-07 09:51:53 +02:00
parent 617548cd50
commit f37524f76f
14 changed files with 203 additions and 89 deletions

View File

@@ -1,4 +1,9 @@
const childProcessChecker = require('../utility/childProcessChecker');
async function runScript(func) {
if (process.argv.includes('--checkParent')) {
childProcessChecker();
}
try {
await func();
process.exit(0);