diff --git a/index.js b/index.js index 9e8f6584..62997eec 100644 --- a/index.js +++ b/index.js @@ -27,6 +27,7 @@ const git = require('simple-git/promise')(__dirname); git .raw(['symbolic-ref', '--short', 'HEAD']) .then(branch => { + branch = branch.slice(0,-1) // 結果會多一個換行符 if (branch != (config.PokaPlayer.debug ? 'dev' : 'master')) { git .fetch(["--all"])