diff --git a/tag.js b/tag.js index b6dca27afe77c3c89d37c6bc11ceacfd6e45cb16..78a20ddd7548daa33a0553d1ce806fc08cbf29f3 100644 --- a/tag.js +++ b/tag.js @@ -1,12 +1,10 @@ var execSync = require("child_process").execSync; function execute(cmd) { - execSync(cmd, function (error, stdout, stderr) { + execSync(cmd, function (error, stdout, stderr) { if (error) { console.error("å‘生错误", error); process.exit(1); // throw error; - } else { - console.log(cmd); } }); } @@ -37,4 +35,4 @@ execute("git merge --no-ff develop"); execute("git push"); execute(`git tag -a ${params.tag} -m ${params.m}`); execute(`git push --tags `); -console.log("success"); +console.log("successfull");