Update startVanillaServer.js
Debug log on CI
This commit is contained in:
parent
1542ab63d1
commit
370ca96f2e
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const http = require('https')
|
||||
const fs = require('fs')
|
||||
const cp = require('child_process')
|
||||
const debug = require('debug')('minecraft-protocol')
|
||||
const debug = process.env.CI ? console.debug : require('debug')('minecraft-protocol')
|
||||
const https = require('https')
|
||||
const { getFiles, waitFor } = require('../src/datatypes/util')
|
||||
|
||||
|
|
@ -31,6 +31,7 @@ function fetchLatestStable () {
|
|||
|
||||
// Download + extract vanilla server and enter the directory
|
||||
async function download (os, version, path = 'bds-') {
|
||||
debug('Downloading server', os, version, 'into', path)
|
||||
process.chdir(__dirname)
|
||||
const verStr = version.split('.').slice(0, 3).join('.')
|
||||
const dir = path + version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue