Skip to content

Commit cb20a55

Browse files
committed
Bento: checksum name support
1 parent 68592eb commit cb20a55

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export const loadConfig = async (configPath) => {
1010
)
1111
}
1212

13+
if (typeof config.checksum === 'undefined') {
14+
config.checksum = 'benthos'
15+
}
16+
1317
return config
1418
}
1519

lib/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const get = async (benthos) => {
3838

3939
const [data, checksums] = await Promise.all([
4040
download(`${root}/${name}`),
41-
download(`${root}/benthos_${benthos.version}_checksums.txt`)
41+
download(`${root}/${benthos.checksum}_${benthos.version}_checksums.txt`)
4242
])
4343

4444
return { name, data, checksums }

0 commit comments

Comments
 (0)