Skip to content

Commit 9d5585a

Browse files
author
Maledong
authored
fix: print out "Coming Soon" when there's no downloadable link (#4102)
Ref: #4101.
1 parent 340ea1c commit 9d5585a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/release-post.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ function findAuthorLogin (version, section) {
153153
function urlOrComingSoon (binary) {
154154
return sendRequest({ url: binary.url, method: 'HEAD' }).then(
155155
() => `${binary.title}: ${binary.url}`,
156-
() => `${binary.title}: *Coming soon*`
156+
() => {
157+
console.log(`\x1B[32m "${binary.title}" is Coming soon...\x1B[39m`)
158+
return `${binary.title}: *Coming soon*`
159+
}
157160
)
158161
}
159162

0 commit comments

Comments
 (0)