mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
cli: stringify inline evaluation
This commit is contained in:
parent
8ef5b3bedd
commit
074dbcda9d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user