Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyt0313 committed Nov 6, 2023
2 parents 6f8b662 + 66a1a6f commit 3da7fef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/set-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const interpreter = new DslInterpreter(descriptors, true);
//get all commands
const cmd = fs.readFileSync('./__test__/dry-run-input.txt', 'utf8');
// split by new line
const cmdList = cmd.split('\n');
const cmdList = cmd.split("\\n");
console.log(cmdList);
let output = "";
Expand All @@ -46,11 +46,11 @@ for (let i = 0; i < cmdList.length; i++) {
try {
let funcCallResult = await interpreter.interpret(cmd);
console.log(funcCallResult);
output += JSON.stringify({status: 'success', result: funcCallResult}) + '\n';
output += JSON.stringify({status: 'success', result: funcCallResult}) + "\\n";
// print ok or success
}
catch (e) {
output += JSON.stringify({status: 'error', result: e}) + '\n';
output += JSON.stringify({status: 'error', result: e}) + "\\n";
}
}
Expand Down

0 comments on commit 3da7fef

Please sign in to comment.