From f5815c806d6f4ae0d03878753efaaab14aa052e4 Mon Sep 17 00:00:00 2001 From: ibrahim0814 Date: Tue, 12 Nov 2019 23:49:22 -0800 Subject: [PATCH] try executing only body --- index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index dfb6557..7d3934c 100644 --- a/index.js +++ b/index.js @@ -28,15 +28,23 @@ try { //console.log('error:', error); //console.log('statusCode:', response && response.statusCode); //console.log('body:', body); - token = token.toString() + // token = token.toString() - execSh([`export CODECOV_TOKEN=${token}`, body], true, (err, stdout, stderr)=>{ + // execSh([`export CODECOV_TOKEN=${token}`, body], true, (err, stdout, stderr)=>{ + // //console.log("error: ", err); + // console.log("stdout: ", stdout); + // //console.log("stderr: ", stderr); + + // }) + + execSh(body, true, (err, stdout, stderr)=>{ //console.log("error: ", err); console.log("stdout: ", stdout); //console.log("stderr: ", stderr); }) + // const command = `bash ${body}` // //const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}` // exec(command, (err, stdout, stderr) => {