This commit is contained in:
yuri
2019-09-19 15:50:31 +03:00
parent 8d68305e38
commit 96bdd54782
+1
View File
@@ -85,6 +85,7 @@ deleteDirRecursively(diffFilePath);
deleteDirRecursively(upgradePath);
execute('git rev-parse --abbrev-ref HEAD', function (branch) {
branch = branch.trim();
if (branch !== 'master' && branch !== 'stable' && branch.indexOf('hotfix/') !== 0) {
console.log('\x1b[33m%s\x1b[0m', "Warning! You are on " + branch + " branch.");
}