Browse Source

Merge pull request #400 from oleorhagen/fix-bot-zip-suffix

linkbot: Remove the image name suffix from the image name
change-dependabot-prefix
Lluis Campos 3 years ago
committed by GitHub
parent
commit
dcdb11f812
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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