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
No known key found for this signature in database
GPG Key ID: 399DBE0F4D4B02EB
1 changed files with
3 additions and
2 deletions
-
scripts/linkbot/monitor-raspbian-os.js
|
@ -41,13 +41,14 @@ function getNewRaspbian(target, url, separator) { |
|
|
return acc; |
|
|
return acc; |
|
|
}, [])[0]; |
|
|
}, [])[0]; |
|
|
console.log(`Test var: ${test}`); |
|
|
console.log(`Test var: ${test}`); |
|
|
|
|
|
const imageName = test.substring(0, test.length - 4); |
|
|
if (separator) { |
|
|
if (separator) { |
|
|
return { |
|
|
return { |
|
|
replacementLine: `${target}${separator} \"${url}/${test}\"`, |
|
|
replacementLine: `${target}${separator} \"${url}/${test}\"`, |
|
|
imageName: test, |
|
|
imageName: imageName, |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
return { replacementLine: `${target}=\"${url}/${test}\"`, imageName: test }; |
|
|
return { replacementLine: `${target}=\"${url}/${test}\"`, imageName: imageName }; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|