diff --git a/bin/lib/checkGitClean.js b/bin/lib/checkGitClean.js index 2e298835..3ebd1b47 100644 --- a/bin/lib/checkGitClean.js +++ b/bin/lib/checkGitClean.js @@ -13,7 +13,7 @@ module.exports = function checkGitClean() { logWithExit('本地 GIT 有未提交的改动文件,请提交后再试!') } } catch (error) { - if (!/not a git repository/.test(error.message)) { + if (!/not a git repository/i.test(error.message)) { logWithExit(error) } }