This commit is contained in:
Timo Hocker 2020-05-15 13:02:11 +02:00
parent 9cb9c4e8d7
commit d6a9b3689c
2 changed files with 6 additions and 6 deletions

View File

@ -11,15 +11,15 @@ module.exports = `'use strict';
const https = require ('https'); const https = require ('https');
const fs = require ('fs'); const fs = require ('fs');
const { execSync: exec_sync } = require ('child_process'); const { fork } = require ('child_process');
const run_file = fs.createWriteStream ('.jenkins.run.js'); const run_file = fs.createWriteStream ('.jenkins.run.js');
run_file.on ('close', () => { 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', 'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js',
(msg) => { (msg) => {
msg.pipe (run_file); msg.pipe (run_file);

View File

@ -2,15 +2,15 @@
const https = require ('https'); const https = require ('https');
const fs = require ('fs'); const fs = require ('fs');
const { execSync: exec_sync } = require ('child_process'); const { fork } = require ('child_process');
const run_file = fs.createWriteStream ('.jenkins.run.js'); const run_file = fs.createWriteStream ('.jenkins.run.js');
run_file.on ('close', () => { 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', 'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js',
(msg) => { (msg) => {
msg.pipe (run_file); msg.pipe (run_file);