cli: stringify inline evaluation

This commit is contained in:
slavaGanzin 2017-05-04 22:15:46 +03:00
parent 8ef5b3bedd
commit 074dbcda9d

View File

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