test: Add -u flag unzipping vanilla server (#262)

* Fixed startVanillaServer.js

I fixed the CI by editing startVanillaServer.js and adding -u to unzip and tar

* Update startVanillaServer.js
This commit is contained in:
Miniontoby 2022-08-24 06:34:14 +02:00 committed by GitHub
commit ce06762dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ async function download (os, version, path = 'bds-') {
await get(found, 'bds.zip')
console.info('⚡ Unzipping')
// Unzip server
if (process.platform === 'linux') cp.execSync('unzip bds.zip && chmod +777 ./bedrock_server')
if (process.platform === 'linux') cp.execSync('unzip -u bds.zip && chmod +777 ./bedrock_server')
else cp.execSync('tar -xf bds.zip')
return verStr
}