From d6a9b3689c0627830bdda5b327583b0860ca635f Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 15 May 2020 13:02:11 +0200 Subject: [PATCH] fix --- asset_jenkins.js | 6 +++--- jenkins.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/asset_jenkins.js b/asset_jenkins.js index f212285..f095939 100644 --- a/asset_jenkins.js +++ b/asset_jenkins.js @@ -11,15 +11,15 @@ module.exports = `'use strict'; const https = require ('https'); const fs = require ('fs'); -const { execSync: exec_sync } = require ('child_process'); +const { fork } = require ('child_process'); const run_file = fs.createWriteStream ('.jenkins.run.js'); run_file.on ('close', () => { - exec_sync ('node .jenkins.run.js', { stdio: 'inherit' }); + fork ('.jenkins.run.js'); }); -https.request ( +https.get ( 'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js', (msg) => { msg.pipe (run_file); diff --git a/jenkins.js b/jenkins.js index 74573e9..077cd9a 100644 --- a/jenkins.js +++ b/jenkins.js @@ -2,15 +2,15 @@ const https = require ('https'); const fs = require ('fs'); -const { execSync: exec_sync } = require ('child_process'); +const { fork } = require ('child_process'); const run_file = fs.createWriteStream ('.jenkins.run.js'); run_file.on ('close', () => { - exec_sync ('node .jenkins.run.js', { stdio: 'inherit' }); + fork ('.jenkins.run.js'); }); -https.request ( +https.get ( 'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js', (msg) => { msg.pipe (run_file);