Set title

This commit is contained in:
ineedbots 2021-06-18 00:34:10 -06:00
parent cda0902e1e
commit 4eced4bc93

View File

@ -6,6 +6,15 @@ const repo_name = 'iw4x_bot_warfare'
const repo_url = `https://github.com/ineedbots/${repo_name}` const repo_url = `https://github.com/ineedbots/${repo_name}`
const deploy_check_rate = 60000 const deploy_check_rate = 60000
function setTerminalTitle(title)
{
process.stdout.write(
String.fromCharCode(27) + "]0;" + title + String.fromCharCode(7)
);
}
setTerminalTitle('IW4x GitHub Deployer')
async function doDeploy() { async function doDeploy() {
try { try {
const { stdout, stderr } = await exec(`cd ${repo_name} && git fetch`) const { stdout, stderr } = await exec(`cd ${repo_name} && git fetch`)