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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; |
|
|
|
}, [])[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 }; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|