Update 'scripting.js'

This commit is contained in:
andreacavalli 2020-03-19 00:50:57 +01:00
parent 72e1204826
commit 2a2522e510
1 changed files with 4 additions and 4 deletions

View File

@ -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];