Skip to content

Commit beeb2e1

Browse files
authored
fix: hotfix
1 parent ebfaf89 commit beeb2e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cp/files/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
const arguments = process.argv.slice(2);
1+
const args = process.argv.slice(2);
22

3-
console.log(`Total number of arguments is ${arguments.length}`);
4-
console.log(`Arguments: ${JSON.stringify(arguments)}`);
3+
console.log(`Total number of arguments is ${args.length}`);
4+
console.log(`Arguments: ${JSON.stringify(args)}`);
55

66
const echoInput = (chunk) => {
77
const chunkStringified = chunk.toString();
88
if (chunkStringified.includes('CLOSE')) process.exit(0);
99
process.stdout.write(`Received from master process: ${chunk.toString()}\n`)
1010
};
1111

12-
process.stdin.on('data', echoInput);
12+
process.stdin.on('data', echoInput);

0 commit comments

Comments
 (0)