From 074dbcda9df03198dbf393cbe2e02f288941b462 Mon Sep 17 00:00:00 2001 From: slavaGanzin Date: Thu, 4 May 2017 22:15:46 +0300 Subject: [PATCH] cli: stringify inline evaluation --- bin/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index e67c901c9..a2077f5ae 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -423,8 +423,8 @@ else if (scripts.length === 0) { else { fs.stat(scripts[0], (e, f) => { if (e) - return console.log(getMath().eval(scripts.join(' '))) - + return console.log(getMath().eval(scripts.join(' ')).toString()) + //work through the queue of scripts scripts.forEach(function (arg) { // run a script file