var exec = require('child_process').exec;

exec('git rev-parse --abbrev-ref HEAD', function (error, branch) {
    if (branch === "master") process.exit(0);
    else {
        console.log("Branch is not master, failing....");
        process.exit(1);
    }
});
var exec = require('child_process').exec;

exec('git rev-parse --abbrev-ref HEAD', function (error, branch) {
    if (branch === "master\n") process.exit(0);
    else {
        console.log("Branch is not master, failing....");
        process.exit(1);
    }
});
Include newline in master check script
Include newline in master check script
