Update 'scripting.js'

This commit is contained in:
andreacavalli 2020-03-19 00:50:57 +01:00
parent 72e1204826
commit 2a2522e510

View File

@ -39,11 +39,11 @@ async function bash(bashScript, options) {
function exec(text) { function exec(text) {
return execSync(text)+''; return execSync(text)+'';
} }
function print(text) { function print(...text) {
process.stdout.write(text); process.stdout.write(text.join(" "));
} }
function println(text) { function println(...text) {
process.stdout.write(text + '\n'); print(text) + process.stdout.write("\n");
} }
const scriptPath = process.argv[2]; const scriptPath = process.argv[2];