Skip to content

Commit b8748a0

Browse files
committed
Bento: checksum name support
1 parent b756d4b commit b8748a0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/config.js

+4
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

+1-1
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)