do something, i guess

stable
Marcus 2020-11-11 21:49:42 -05:00
parent cc10219408
commit 4980f42096
2 changed files with 8 additions and 3 deletions

View File

@ -22,4 +22,7 @@ title('relay');
// })();
setTimeout(() => {}, 1000)
setTimeout(() => {
log.debug('this is a test output...')
setTimeout(() => {}, 1000)
}, 1000)

View File

@ -9,9 +9,11 @@ function update() {
if(remoteHash !== localHash) {
log.info('remote hash:', remoteHash);
log.info('local hash: ', localHash);
log.info('attempting to fetch new version');
execSync(`git fetch`, { stdio: "inherit" });
execSync(`git pull`, { stdio: "inherit" });
execSync(`git fetch`);
execSync(`git pull`);
log.info('restarting relay...');
process.exit(2);
}
}