Browse Source

linkbot: Remove the image name suffix from the image name

Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
change-dependabot-prefix
Ole Petter 3 years ago
parent
commit
a9740723a2
No known key found for this signature in database GPG Key ID: 399DBE0F4D4B02EB
  1. 5
      scripts/linkbot/monitor-raspbian-os.js

5
scripts/linkbot/monitor-raspbian-os.js

@ -41,13 +41,14 @@ function getNewRaspbian(target, url, separator) {
return acc;
}, [])[0];
console.log(`Test var: ${test}`);
const imageName = test.substring(0, test.length - 4);
if (separator) {
return {
replacementLine: `${target}${separator} \"${url}/${test}\"`,
imageName: test,
imageName: imageName,
};
}
return { replacementLine: `${target}=\"${url}/${test}\"`, imageName: test };
return { replacementLine: `${target}=\"${url}/${test}\"`, imageName: imageName };
});
}

Loading…
Cancel
Save