Minor updates

This commit is contained in:
Tben 2023-08-17 16:55:25 +01:00
parent 4938b2522a
commit 6f14e314e8
2 changed files with 10 additions and 6 deletions

View File

@ -89,16 +89,16 @@ const argvProcessList = process.argv.at(-1);
const processesFilePath = path.resolve(process.cwd(), "batchrun.config.json");
if (argvProcessList) {
const processesArray = argvProcessList.split(",");
if (fs.existsSync(processesFilePath)) {
const processesFile = fs.readFileSync(processesFilePath, "utf8");
const processesArray = JSON.parse(processesFile);
for (let i = 0; i < processesArray.length; i++) {
const processString = processesArray[i];
const strippedProcessString = processString.trim();
processesStrings.push(strippedProcessString);
}
} else if (fs.existsSync(processesFilePath)) {
const processesFile = fs.readFileSync(processesFilePath, "utf8");
const processesArray = JSON.parse(processesFile);
} else if (argvProcessList) {
const processesArray = argvProcessList.split(",");
for (let i = 0; i < processesArray.length; i++) {
const processString = processesArray[i];
const strippedProcessString = processString.trim();

View File

@ -1,11 +1,15 @@
{
"name": "batch-run",
"version": "1.0.0",
"version": "1.0.1",
"description": "Run and manage multiple processes concurrently in one terminal",
"main": "index.js",
"bin": {
"batch-run": "index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/BenjaminToby/batch-run"
},
"keywords": [
"process",
"batch",