do something, i guess
parent
cc10219408
commit
4980f42096
|
|
@ -22,4 +22,7 @@ title('relay');
|
|||
// })();
|
||||
|
||||
|
||||
setTimeout(() => {}, 1000)
|
||||
setTimeout(() => {
|
||||
log.debug('this is a test output...')
|
||||
setTimeout(() => {}, 1000)
|
||||
}, 1000)
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue