From 4980f42096feb51dace1badb03630adb59a3601f Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 11 Nov 2020 21:49:42 -0500 Subject: [PATCH] do something, i guess --- relay/index.js | 5 ++++- relay/service.js | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/relay/index.js b/relay/index.js index faa3793..da3b123 100644 --- a/relay/index.js +++ b/relay/index.js @@ -22,4 +22,7 @@ title('relay'); // })(); -setTimeout(() => {}, 1000) \ No newline at end of file +setTimeout(() => { + log.debug('this is a test output...') + setTimeout(() => {}, 1000) +}, 1000) \ No newline at end of file diff --git a/relay/service.js b/relay/service.js index eb38156..e13e697 100644 --- a/relay/service.js +++ b/relay/service.js @@ -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); } }