helper-bot: fix url escaping

This commit is contained in:
extremeheat 2021-08-09 23:19:08 -04:00 committed by GitHub
commit b3edee0b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ function getProtocolVersion () {
}
async function fetchLatest () {
if (!fs.existsSync('./results.json')) cp.execSync(`curl -L ${latestVesionEndpoint} -o results.json`, { stdio: 'inherit', shell: true })
if (!fs.existsSync('./results.json')) cp.execSync(`curl -L "${latestVesionEndpoint}" -o results.json`, { stdio: 'inherit', shell: true })
const json = require('./results.json')
const result = json.results[0]
// console.log(json)