Browse Source

Linkbot: Quote the URL string in Bash

Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
2.6.x
Ole Petter 3 years ago
parent
commit
49b9409c39
No known key found for this signature in database GPG Key ID: 399DBE0F4D4B02EB
  1. 2
      scripts/linkbot/monitor-ub-server.js

2
scripts/linkbot/monitor-ub-server.js

@ -49,7 +49,7 @@ JSDOM.fromURL(url, {}).then(dom => {
const match = Array.from(refs).find(ref => ref.href.match(`.*ubuntu-${releaseVersion}\.?[0-9]+-preinstalled-server-armhf.*\.img\.xz$`))
if (match) {
console.log(`Ubuntu server image has a new release: ${match}`)
updateURLLink(`${target}=${match}`, target)
updateURLLink(`${target}=\"${match}\"`, target)
}
})
});

Loading…
Cancel
Save