From 2a2522e5103e8a004a7a58f1fd3627a0446f162e Mon Sep 17 00:00:00 2001 From: andreacavalli Date: Thu, 19 Mar 2020 00:50:57 +0100 Subject: [PATCH] Update 'scripting.js' --- scripting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripting.js b/scripting.js index a687413..0ee28bd 100644 --- a/scripting.js +++ b/scripting.js @@ -39,11 +39,11 @@ async function bash(bashScript, options) { function exec(text) { return execSync(text)+''; } -function print(text) { - process.stdout.write(text); +function print(...text) { + process.stdout.write(text.join(" ")); } -function println(text) { - process.stdout.write(text + '\n'); +function println(...text) { + print(text) + process.stdout.write("\n"); } const scriptPath = process.argv[2];