adjust branch check logic

This commit is contained in:
zombiej 2019-07-30 19:52:57 +08:00
parent 1f012fb8e9
commit dc853c6805

View File

@ -24,7 +24,7 @@ async function checkVersion() {
}
async function checkBranch({ current }) {
if (current !== 'master' || current !== '4.0-prepare') {
if (current !== 'master' && current !== '4.0-prepare') {
console.log(chalk.yellow('🤔 You are not in the master branch!'));
exitProcess();
}